http://www.developer.nokia.com/Resources/Tools_and_downloads/.
Do not download Qt Libraries, Qt Creator or MinGW v4.4.0. If not, you have to download and install more than one time. Qt SDK contains qt libraries, qt creator ide, and mingw C++ compiler in one installation package.
After the download is finished, click the executable file to install.
Select "Custom" and not default as the type of installation. Tick the box to remove old Qt creator settings.
Select the following components to install:
[tick] Qt SDK > APIs
[tick] Qt SDK > Documentation
[tick] Miscellaneous > Qt Examples
[tick] Miscellaneous > MinGW 4.4
[tick] Development Tools > Qt Assistant
[tick] Development Tools > Qt Designer
[tick] Development Tools > Desktop Qt > Qt 4.7.3 > Desktop Qt 4.7.3 - MINGW
[tick] Development Tools > Qt Linguist
[ticked by default] Qt Creator
[tick] Development Tools > Simulator > Simulator fonts
[tick] Development Tools > Simulator > Simulator Qt 4.7.3 – MinGW 4.4
Wait until the installation is complete.
After the installation has been completed, set the Qt paths (environment variables) in Windows by removing the string "C:\Program Files\CodeBlocks\MinGW\bin" if there is any and then replace it with the string of two paths "C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin;C:\QtSDK\mingw\bin".
Copy all *.dll files from “C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin”
to “C:\Windows\System32”.
Open Qt Creator IDE.
Open Qt Creator IDE.
Create a new Qt Widget Project. Choose Qt Gui Application to create an application for the desktop.
Tick to use the path at “x:\code_qt_folder” as your default project location.
Make sure “Use Shadow Building”, Qt 4.7.3 for Desktop – MinGW 4.4 (Qt SDK) debug and release boxes are ticked.
Press Ctrl + R to run the project.
Wait until the project finish building to see your running program.
No comments:
Post a Comment