QT application programming: win7+vs2010+QT4.8.5 development environment construction

1. Environmental introduction

Operating system: win7 64-bit home edition

QT version: 4.8.5 (qt-win-opensource-4.8.5-vs2010.exe)

VS version:  2010

Because the source code of the recently used project was developed in the QT4.8.5+VS2010 environment, in order to facilitate the test and debugging of the code running effect, the win7 system was installed using the VM virtual machine to build the development environment.

2. Related software package download address

2.1 QT library download address

Download link:   http://download.qt.io/archive/qt/4.8/4.8.5/

CSND download address:  https://download.csdn.net/download/xiaolong1126626497/14000093

2.2  qtcreator  download address

Official website download address:  http://download.qt.io/archive/qtcreator/3.3/3.3.2/

CSDN download address:   https://download.csdn.net/download/xiaolong1126626497/14000103

 

2.3 VS2010 download address

Baidu network disk download address:  https://pan.baidu.com/s/1Jg-91x1e4mDKzaSHPJnNTw 
Extraction code: 4v79 
 

2.4 Download link of QT4 plug-in corresponding to VS2010

Available download address:   http://qtmirror.ics.com/pub/qtproject/official_releases/vsaddin/

CSDN download address:  https://download.csdn.net/download/xiaolong1126626497/14000077

Three, installation sequence and VS2010 to create a QT project example

The installation sequence is not strictly required. My installation order here is:

1. QT4.8.5 library: qt-win-opensource-4.8.5-vs2010.exe

2.    qtcreator  development IDE  : qt-creator-opensource-windows-x86-3.4.0-beta1.exe

3. VS2010 Chinese Ultimate Edition: cn_visual_studio_2010_ultimate_x86_dvd_532347

4. QT plug-in in VS: qt-win-opensource-4.8.5-vs2010.exe

 

After installing the steps 1 and 2, first open QTCreate to configure the compiler, select the VS2010 compiler, it will automatically recognize it, and then create a program to compile and run the test environment.

The debugger needs to be downloaded separately. VS2010 itself does not have a debugger. It needs to be downloaded and installed separately and then configured. Because I don't use it temporarily, there is no installation.

 

After there is no problem with the QT environment, install all the remaining software, and then open VS2010. If the QT plug-in is installed successfully, the QT option will appear in the VS2010 toolbar.

Click New Project, you can choose to create a QT4 project.

 

 

Note: If you find that the program can be compiled normally after the project is created, but VS cannot recognize the QT header file, you only need to close the project and reopen it.

 

 

Guess you like

Origin blog.csdn.net/xiaolong1126626497/article/details/112058848