1. VS IDE Installation Extension (Tools-> "Extend and update"-> "online" option)
Enter "QT" Search and click on the download:
When the download is complete, close vs, the following window will appear, click "Modify" to complete the QT plugin installation:
2. Run again vs
The menu bar has Qt's menu:
Click on it and select QT options to configure the associated path for the installed QT:
Multiple QT versions can be specified, where a default development version is selected:
3. New Test Project
Here, create a "Qt GUI application":
After the next step, modify the base class here to Qdialog, which means the main window is a dialog box, and the default is Qmainwindow:
Then right click on the solution and configure the project:
Select a developed QT version:
4. Compile
Error:
Use the official website qalgorithms.h file to replace the file under C:\Qt\Qt5.8.0\5.8\msvc2013_64\include\QtCore.
Compile again, error:
Well, the installation of this QT version does not support vs2017, looked at, I just installed qt is for vs2013 ...
5. $%^&**%^ ... Reload the 5.10.1 for vs2017~, repeat the steps above, OK:
Run: