method 1 |
---|
1. Enter the official website to download qt-vsaddin-msvc2019-2.4.3.vsix , and then click Run.
2. Click install to install the plug-in.
3. Wait for the installation to complete Close and open VS2019.
4. Qt VS Tools will appear under the extension, and then enter Qt Options.
5. Add, add the path of msvc2017_64, which is the compilation tool downloaded when installing Qt.
At this point, the Qt installation of VS is complete.
Method 2 |
---|
Directly in VS, Extensions --> Manage Extensions --> Search qt online, then download and install it online.
Step on the pit |
---|
If the above two methods do not work for you, VSIX will report an error when installing the plug-in:
This is because the cache file of your VS2019 on the C drive has been deleted. When you open the VS Installer, you find that it cannot detect the 2019 you installed, so the extension cannot be installed.
The solution is to reinstall (uninstall and install) VS2019. Of course, in this case, you cannot use VS Installer to uninstall. You must manually delete the folder and the VS folder under C:\Program Files (x86), and then delete the registry VS information in, and finally restart the computer. Then install VS2019 normally, and there is no problem with this uninstall method.