Adding Qt to an Existing Visual Studio project?
-
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 -
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.