If you now try to execute
C:\Qt\2010.01\qt\qmake\qmake.exe C:\where\your\project\is\MyProject.pro -spec C:\Qt\2010.01\qt\mkspecs\win32-g++
C:\Qt\2010.01\qt\qmake\qmake.exe C:\where\your\project\is\MyProject.pro -spec C:\Qt\2010.01\qt\mkspecs\win32-g++
To copy to clipboard, switch view to plain text mode
via a QProcess, you'll notice that the makefile will be generated, but in the folder of your application exe.
If you set the OBJECTS_DIR variable, you can specify where the code should be build.
I guess you'll get into trouble running make from a QProcess too. I don't know how you can cd to a specific directory inside a QProcess object.
Edit: Maybe using void QProcess::setWorkingDirectory ( const QString & dir )
Bookmarks