Article directory
1 VS2017 download and installation
Official download link: https://visualstudio.microsoft.com/zh-hans/free-developer-offers/
2 Qt5.14.2 download and installation
Qt5.14.2 download and installation (nanny-level graphic tutorial)
3 VS2017 configure Qt5.14.2
After installing VS2017, there is no Qt in the VS menu bar, and you need to download it yourself.
Select Tools -> Extensions and Updates
Select Online, and search for Qt in the search box on the right, download
long wait…
If you cannot download for a long time, you can choose another method.
Download directly from the Qt official websiteQt Visual Studio Tools
Official download address: https://download.qt.io/development_releases/vsaddin/
Select the required version to download, here select the latest version 2.8.1, and select the version corresponding to VS to download. Soon, it's over with a snap.
Double-click the downloaded installation package
Before installation, please close VS, otherwise the installation will fail, and the following prompt will be given. The installation will continue after closing VS.
Installing...
Installation complete!
At this time, we opened VS and found that it has been added to the menu bar, Qt VS Tools
but Qt cannot be used in VS at this time, and the Qt version needs to be specified.
Select Qt Versions
to add a new Qt version
The path selected qmake.exe
in Path can refer to the following directory
D:\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin
Configuration is complete!
4 test
Create a blank form project
and directly debug and run, the following interface appears, saying that the configuration is successful.
However, the .ui
file cannot be opened at this time (Qt Designer, Qt Designer). Select the Options option under Qt VS Tools , and change the Qt Designer Run in detached window
from default toFalse
.True
This will open Qt Designer normally.