I’m using Visual Studio 2010 Ultimate and I know there’s the Qt VS Add-In. However I’ve chosen to not use it as according to an announcement by Nokia they will not release any further versions of it. So now would be a good time to change work practises.
I’m looking for a way to automatically call moc.exe on class files that need to be moc’ed, and for the moc’ed files to be compiled as well. I’ll probably do this for the resource/ui compilers as well.
Add-in is mainly useful to import .pro files to VS projects, after that you do not really need the add-in (unless for making it easier to change between different Qt versions).
Just make sure to define QTDIR in a project property page (.vsprops) as UserMacro and have it exported to the environment, then you can use it for $(QTDIR)\bin\moc.exe against Qt header files in the custom build step, similarly for UIs.