1. obtain the latest QT creator and QT library on the official website.
Official Website: http://qt.nokia.com/
2. Install QT creator
Reference installation path: D: \ QT \ qtcreator-2.4.1
3. Install the QT Library
Refer to installation path: D: \ QT \ 4.8.0
The installation process prompts you to locate the mingw. You can view the mingw directory under the QT creator installation directory, that is:
D: \ QT \ qtcreator-2.4.1 \ mingw
4. QT creator Configuration
Start QT creator, select [tools] --> [Options] from the menu, click the [qt4] tab on the left, click [add] in the upper right corner, and then click [browse] at the bottom. browse to the path of qmake, where:
D: \ QT \ 4.8.0 \ bin \ qmake.exe
Finally, apply the setting. It is best to restart QT creator after the setting is complete.
5. Create and run helloworld
NOTE: If compilation often encounters an error: jom.exe X. XX-empower you cores, you can try to cancel the "use Jom instead of nmake" option (this option is on the [project] tab under the menu [tools] --> [Options)
6. Run the executable file directly.
To directly double-click the executable files under the [debug] or [release] Directory of the project, add the following environment variables:
D: \ QT \ qtcreator-2.4.1 \ mingw \ bin; D: \ QT \ 4.8.0 \ bin;
Or copy the following four files to the directory where the executable files are located.
D: \ QT \ qtcreator-2.4.1 \ mingw \ bin mingwm10.dll, libgcc_s_dw2-1.dll
Qtcore4.dll and qtgui4.dll under D: \ QT \ 4.8.0 \ bin
Http://www.cnblogs.com/it_mac/archive/2011/11/03/2234433.html (reference)