Development of Qt application environment under VS
Release Notes
vs 2019
QT5.14
I followed the installation of QT basic components before , but this installation is only the most basic components. If you want to use QT in VS, you have to install other components. The following installation process,
Environment construction steps
QT new components
I have installed QT before, and now I need to add a new package.
After Qt is installed, how to add and remove components
Run MaintenanceTool.exe
QT This operation requires at least one valid repository that is enabled
Follow the steps below, "Add", fill in the address of the temporary data repository: http://mirrors.ustc.edu.cn/qtproject/online/qtsdkrepository/windows_x86/root/qt/
An error occurs: the missing dependency of preview.at.56.qtscript cannot be found
Solution:
Successfully entered the page for adding components:
5.14.2 can only add these things here. .
5.15.2 supports VS2019, so after selecting 5.15.2,
just remove a few that are definitely not needed
Too much time here. . . . And it feels like something is stuffed into the C drive. .
Just uninstall and reinstall. . . . . .
Reinstall QT
Installation is still very resource-intensive. . .
You can see that the programs written before can be indexed, haha (keep the folder location consistent)
Configuration in VS
Configuration in vs
Search for Qt, click to download Qt Visual Studio Tools
Restart QT
and find qmake.exe under the path where QT is installed, and
add the two previously installed
Create a new project:
Select the base class as QWidget, you can check Lower case file names by yourself
The problem encountered;
when using Qt Designer to open the ui file, it will flash back and report an error.
Right-click the ui file, add a new opening method, and find the path of QtCreator.exe. And set QtCreator as the default opening method of .ui
D:\Qt\qt5.14.2\Tools\QtCreator\bin\qtcreator.exe
Run
adjust color to white:
adjust color