I'm working on Maya 2013, but it's fairly easy...
To be able to compile and link Qt content, you just need:
to unzip the Qt-includes (see C:\Program Files\Autodesk\Maya\include\Qt)download the modified Qt source from Autodesk and follow instructions within
... if you really did that, it should already be it ...set include-dirs correctly in your projectset lib-dirs correctly in your projectand - MOST IMPORTANT: do not use includes like "#include " - use "#include " instead!you also need the Qt SDK to be able to run moc, uic and qrc (that was told to you in the docs of the modified Qt source)an idea of where and when to run moc, uic and qrc (and maybe other qt tools): for each of those files you'll have to set up a special build-rule in your project - f.e. I made a QPushButton-Derivative -> the class' header contains the Q_OBJECT macro - so it needs to run moc before compiling the actual c++ code: solution-explorer, right-click the header, select Properties
General->Item Type = Custom Build ToolCustom Build Tool->CommandLine = C:\qt\2010.05\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Program Files\Autodesk\Maya2013\include\Qt\QtCore" -I"c:\Program Files\Autodesk\Maya2013\include\Qt\QtGui" -I"c:\Program Files\Autodesk\Maya2013\include\Qt" -Ic:\qt-adsk-4.7.1\mkspecs\win32-msvc2010 -D_MSC_VER=1600 -DWIN32 %(FullPath) -o $(ProjectDir)$(Platform)\moc_%(Filename).cppObviously I have built my modified Qt source - and I'm using it ...
Btw. the release-libs can be found at C:\Program Files\Autodesk\Maya\lib - you can also link debug-builds against the release-libs, you just won't have good chances for debugging, then.
P.S.: as soon as you unpacked the includes and added include- and lib-dirs to your project (and obviously lib-dependencies - i.e. "link against QtCore4.lib"), you could f.e. use QString (as MString is just simply a crap-class) in your code. Just for using Signals & Slots or deriving classes from Qt you'll need the moc and by that the Qt sources built.