QT is similar to MFC, also an SDK development package, his advantage is cross-platform. QT is very close to the original ecological C + +, the syntax is simple and clear. In the embedded development or comparative advantage. It gives application developers the functionality they need to build an art-level graphical user interface. QT is completely object-oriented, easy to scale, and allows for true component programming.
QT5.2 the new version of the installation tutorial is also very few, and the previous version of the installation of Nokia to install a few different ways, today to record the installation process. Let's not build the platform in the same way as in the previous 5.2 version.
Download the installation:
1, first download QT installation package and QT plugin.
Since Nokia has given up QT, now the QT official website is: http://qt-project.org (there are many documents, can learn)
Download method Reference http://blog.csdn.net/qq_35040828/article/details/78590895
2, download good after the fool installation can be. Not introduced here.
Note the installation path: Do not include Chinese, spaces, special characters (~<>|?). *!@#$%^&:,;), English path can be.
After installation, open VS2010 and find the option to appear qt5 in the toolbar.
You will now also need to configure the appropriate other versions. Operation steps look at the picture:
Choice: QT5-->QT option
Click Add to find your QT installation directory and find 5.2.1\msvc2010_opengl this folder. Like mine is D:\Tools\qt\5.2.1\msvc2010_opengl.
Click OK. The red letter above indicates that I have already deployed and cannot repeat the deployment.
It is now configured, and now the new version does not need to compile for four hours at all with the previous version. It's much more convenient.
===========================
Let's test it out. Create a simple program.
Select: File--New project->QT5 PROJECTS->QT application, enter project name, next ... To create a new.
As follows:
Once the new is complete, you are ready to run.
Select: Debug, start execution, or CTRL+F5.
Settings for Environment variables:
Found executable program in the project directory, run directly, there will be a loss of *.dll prompt information
Workaround:
(1) environment variable, advanced system settings, properties, right-click Computer, add environment variable Path:d:\tools\qt\5.2.1\msvc2010_opengl\bin.
(2) Locate the missing *.dll (D:\Tools\qt\5.2.1\msvc2010_opengl\bin) in the QT installation directory, and place it in the same directory as the executable program.
Recommendation: Method one.
Because the QT program may be many, if each program executes method two, then the workload is conceivable, so the recommended way to use one.