Qt study Note 1 -- install QT on Windows

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.