Is it possible to work with Qt4 projects in Visual Studio 2012 using add-ons?

I found that Qt VS addin 1.1.x worked with Visual Studios, including 2010. Qt VS addin 1.2.x does not support Qt4 in VS 2012. Are there any forks of this add-on that can handle Qt4 in VS 2012?

+5
source share
2 answers

Yes, this is possible with the addition of VS 1.2.2. I am using this version of addin and Qt 4.8.1 in Visual Studio 2012 together.

Addin has limitations for Qt4, but it does all the moc and ui for you.

Limitations:

  • you must specify Qt4 include directories and lib paths self (not clickable)
  • you do not have Qt 4 file templates (but it still works after changing the include directives of the Qt4 header files to match the Qt4 file structure)

Qt versions

+5

Qt VS2012 (Qt 4.6.x):

  • qt-vs-addin Qt5 VS2012 ( 1.2.2);
  • (x86)\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\autoexp.dat ;
  • QString QByteArray Qt4 ( ';') QString QByteArray Qt5;
  • VS2012, Tools- > Options- > Debugging- > Edit and Continue. , " ". VS autoexp.dat, XML. (.. " ").
  • Profit!
+7

All Articles