convert a vc project to a Qt Addin project

Using Visual Studio 2010+ it is now possible to convert a project to a Qt Addin project, using the "Convert project to Qt Add-in project" feature of the Qt Addin.

  1. Right click on your project in "Solution Explorer", click on "Unload Project"
  2. Right click on your project in "Solution Explorer", click on "Edit .vcxproj"
  3. Add line <Keyword>Qt4VSv1.0</Keyword> between the tags <PropertyGroup Label="Globals">and </PropertyGroup>.
  4. Right click on your project in "Solution Explorer", click on "Reload Project"
  5. Right click on your project in "Solution Explorer", click on "Convert project to Qt Add-in project"

If you have header files in your project you are going to have to follow the instructions in this answerto trigger the generation of moc_* files in the "Generated Files" folder.

猜你喜欢

转载自blog.csdn.net/lxj434368832/article/details/79557513
今日推荐