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 Qt4VSv1.0 between the tags and .
  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.

你可能感兴趣的:(C++)