1. Prepare the software. You can download the latest qt sdk and qt creator from qt.nokia.com,
Download two software installation packages:
Qt-win-opensource-4.6.4-mingw.exe
Qt-creator-win-opensource-2.4.1.exe
2.install qt-creator-win-opensource-2.4.1.exe, assuming that the specified installation to the D disk, D: \ Qt \ qtcreator-2.4.1
3.install qt-win-opensource-4.8.1-mingw.exe and install it on D: \ Qt \ 4.6.4
4. Set environment variables after installation
My computer-> properties-> advanced-> set Environment Variables
Add the directories D: \ Qt \ 4.6.4 \ bin and D: \ Qt \ qtcreator-2.4.1 \ mingw \ bin to the system variable PATH
Create the following two variables:
QMAKESPEC = D: \ Qt \ 4.6.4 \ mkspecs \ win32-g ++
QTDIR = D: \ Qt \ 4.6.4
5. Modify the qt creator build and run configuration items
Method:
Open the qt creator selection tool option and select build and run on the left-> qt version --> Add
Qmake path: d: \ qt \ 4.6.4 \ bin \ qmake.exe