Up to now (July 12, 2013), the highest version of Qt is Qt5.1, in which Qt creator and Qt Lib have been integrated in a single folder, so it is easier to install, just install one. Because QT is highly portable, QT programs written under the same system platform can be easily run on Windows, Linux, and embedded platforms with little change (mainly by changing the library of compiled links at debug time), and there are two main ways to use it under Win7: the Visual In studio and using QT Creator direct programming, QT is installed in this main column of visual Studio2010:
First, the installation of Visual Studio 2010, note that it is best to install VS2010, the author of the computer has VS2012, but did not run successfully, after the download installed VS2010, and, installation VS2010 words for the installation of OpenCV is also good, Because one of these versions is installed in the VS2010.
Second, download and install QT Creator:
Qt 5.1.0 for Windows 32-bit (VS, 505 MB) (Info): HTTP://MIRRORS.NEUSOFT.EDU.CN/QT/OFFICIAL_RELEASES/QT/5.1/ 5.1.0/qt-windows-opensource-5.1.0-msvc2010-x86-offline.exe
Install as per the software default.
Third, download the installation of QT plugin, this plugin will be generated in VS: Visual Studio add-in 1.2.2 for QT5 (does don't work with the Express edition)
is: Http://mirrors.neusoft.edu.cn/qt/official_releases/vsaddin/qt-vs-addin-1.2.2-opensource.exe
Note When installing, you should find the folder where you installed qt and then install it.
Problem: Qt:unable to find a QT build,to solve this problem specify a QT build
Workaround: Use is qt5.0.2,vs2010, download installs after vs2010 installs VS2010, installs Qt5.0.2 again, then installs Qt-vs-addin-1.2.1-opensource.exe, Then appear in the vs2010 as above error found that the original QT can not find the Amake compiler, as prompted to find the D:\qt\ qt5.0.2 folder, this is my QT installation, and then in VS2010 Select the QT5 option, option, in qtversion Select the appropriate qmake path. As shown below:
Note that when QT does not have qmake words may be in qt5.0.2->5.0.2->msvc2010, can. enjoy!
At this point, when you successfully install, open Visual Studio 2010, you can see the following QT plugin, the following will be written in the first QT program to verify that QT installation success:
Go Installing QT 5.1 in Visual Studio 2010