Choose the plug-in according to your version, choose msvc2015 here
After downloading, just double-click to install it.
After installation, you can see the Qt plug-in in visual studio
Open QT VS Tools -> Options
Set the version name and compiler path (under the qt installation directory)
Create a project for testing
Select the QT module to be used
Choose the appropriate base class to create
If you double-click the ui file directly in visual studio, it will crash directly after opening. The solution is to open it with Qt Creator in the folder
Find the ui file in the project folder, right-click to open it with QtCreator, you can edit it on the interface, and it will not crash at this time.
In visual studio, compile and run, the effect is as follows:
[Note] For other installation methods, refer to the article: