问题
Is it possible to have post-build events (as in VC++) in Qt Creator? In particular, I would like to copy the executable to a different folder after it has been built. Can it be done?
回答1:
You will find here all the variables you can use in your project file (.pro): http://doc.qt.nokia.com/4.7/qmake-variable-reference.html.
The one you are searching for is: DESTDIR
Anyway, in QtCreator you can customize all the build and link operation by adding/removing instructions in the Project tab.
回答2:
Add execution of a script to copy the files as a build step as below,

来源:https://stackoverflow.com/questions/4720937/post-build-events-in-qt-creator