How to convert VC project .vcproj to Qt project .pro

It can be found that the menu of the right-click item is unavailable for QT graying

Solution

1 Open VS to create a QT project

 Find the .vcxproj file of this project, open it with Notepad and find <Keyword>QtVS_v301</Keyword>, put the middle

Copy under QtVS_v301

2 Uninstall the project that needs to be converted, edit the .vcxproj file, and replace the copied QtVS_v301

3 Reload the project, right click, and the Qt menu options that were not available before can be seen

 It is recommended to use the 2.40 plugin qt-vsaddin-msvc2019-2.4.1-rev.25.vsix

Attached is the download address of each version of the Qt Visual Studio Tools plug-in Index of /development_releases/vsaddin

 

Guess you like

Origin blog.csdn.net/m0_37137902/article/details/125762249