VS2019 installs the Qt plug-in (with installation failure solution)

method 1

1. Enter the official website to download qt-vsaddin-msvc2019-2.4.3.vsix , and then click Run.

insert image description here

2. Click install to install the plug-in.

insert image description here

3. Wait for the installation to complete Close and open VS2019.

insert image description here

4. Qt VS Tools will appear under the extension, and then enter Qt Options.

insert image description here

5. Add, add the path of msvc2017_64, which is the compilation tool downloaded when installing Qt.

insert image description here

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.

insert image description here

Step on the pit

If the above two methods do not work for you, VSIX will report an error when installing the plug-in:

insert image description here

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.

insert image description here

Guess you like

Origin blog.csdn.net/qq_42257666/article/details/126902806