Adding Qt to an Existing Visual Studio project?
-
As above, aside from doing it manually, is there an easy way to configure an existing project to use Qt?
-
You can try to run
@
qmake -project
@
in your sources folder, after it check .pro file for all needed sources, headers and libs and convert it to .vcproj using VS-addin -
Mixed results, essentially broke my project file, thought I could recover it but no such luck. Any other ideas?
-
If it didn't help then manual solution will definitely do the trick :) Maybe there are some other ways in msvs. Didn't use it (except msvc 6 and small projects in msvc 2005), so don't know.
-
-
There is a third option - switch to QtCreator. But it is a serious tool switch and, of course, it will require some manual operations on creating project.
-
Thanks guys, I ended up doing it manually, including modifying the project file to get it to moc properly. I could switch to Qt creator, however there are a few problems:
- It's a DLL project (I'm not sure if this is an issue).
- It's massive.
Which IDE I use has flow on effects for other developers I work with, so it's gotta be Visual Studio. There's a bit of manual fiddling here and there, but hopefully it will suffice.
-
If you have an proper *.pro file You can do :
qmake -tp vc(see QMake manual "Creating Visual Studio Project Files")
regards
karl-heinz