views:

290

answers:

1

Using MSVC 2008 SP1, and qt-vs-addin-1.1.2

I have a pre-existing project in MSVC that I have QT'ified: In main I added a QApplciation, and my windows are now all QWidgets. I added custom build steps for my .qrc and .ui files and "moc" as a custom build step on any Q_OBJECT header files.

This all functions - the project builds and runs, and the variant on XCode works too.

However my project still behaves differently to a project created using the Qt wizard :- Namely the Qt addin does NOT set the QTDIR build variable. Nor does it offer any of the Qt configuration options on the project context menu - they're all greyed out.

I can work around the QTDIR issue by setting the default QTDIR in my environment. But I would like to resolve what the Qt addin has done to the project - eyeballing the (xml) vcproj file of a Qt generated project vs a Visual Studio project does not reveal any obvious signs of what the Qt-addin is looking for to treat the project properly.

+1  A: 

A project property sheet? Look at View + (Other Windows) + Property Manager for a project that works properly.

Manual install instructions are given here...

Hans Passant
vsysprops files are a handy way for me to fix some of the issues. But it doesn't answer the question of getting the Qt visual studio addin to interop with my project.
Chris Becke