Those avoidable pits when installing and using QT in the window7 environment

Hey haha ​​YapethsDY 2020/08/26

Compared with the previous installation package after Qt 5.9, the VS version and the MinGW version are no longer distinguished, but they are all integrated into one installation package. Therefore, the installation package is much larger and now it is around 2.3G.

Try not to download the Qt installation files from the official website. The speed is very slow. Generally, you will choose a university mirror.

Tsinghua mirror: https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/5.14/5.14.2/ (recommended by netizens)


Installation environment and version number

  • Window 7
  • qt-opensource-windows-x86-5.14.2.exe (QT installation package)
  • vs2015.ent_chs (VS installation package)
  • cmake-3.18.2-win64-x64.exe (Cmake installation package)
  • qt-vsaddin-msvc2015-2.4.3.vsix (QT plugin in VS)

Qt installation

  • Fool-style installation only needs to choose the Vs environment you installed locally.
  • Log in to the account [email protected]+Password (If you don't want to log in to the account and password, you can disconnect the network during installation)

Cmake installation

  • Fool-proof installation
  • But you need to check whether the system local environment variables are loaded correctly after the installation is complete. If the environment variables are not configured, you need to add them manually

Vs2015 installation

  • Fool-proof installation
  • Key HM6NR-QXX7C-DFW2Y-8B82K-WTYJV

Qt Creator configuration

The build kit is shown in the figure above, and the configuration items required are Compiler, Debugger, Cmake tool, etc.

But there are problems when configuring the Debugger, the problems are as follows:

Lack of the SDK under Windows 7 that is Windbg. It took a lot of hard work to find the download resource, but it told me after the installation.

I clicked on ViewLog with a sense of anxiety and found

9:39:03 2020年8月26日: [SDKSetup:Info] File succesfully downloaded - source:http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDK_amd64/WinSDK_amd64.msi target:file:///C:/Users/siasun/AppData/Local/Temp/SDKSetup/WinSDK/WinSDK_amd64/WinSDK_amd64.msi size:692224

Theoretically, dbg has been downloaded (this is when the door is closed but the window is opened when it hits you)

However, after the configuration is completed, there are still problems, (after multiple verifications, the reason was not found, but my leader gave suggestions that it may indeed be a problem with the Win7 system)


So transfer direction:

Start to explore the configuration of the qt plugin in the first IDE in the universe

Everything is going smoothly, find plugins to install plugins, configure QT tools Options and more! Add library directory add reference directory

At this point, we have completed a big step, and then check whether the environment variables are added

Then you can use the first IDE in the universe to create QT programs

Choose some necessary

Then you can say hello to the world happily! happy ending! 2020/08/26 11:37

I would like to thank my little partner for sending me the configuration file (detailed version) under the window10 environment, and a link will be added for you to download

Guess you like

Origin blog.csdn.net/Ding86341631/article/details/108213415