8
In your project file:
CONFIG(release, debug|release) {
#This is a release build
DEFINES += QT_NO_DEBUG_OUTPUT
} else {
#This is a debug build
}
Note that CONFIG can contain both "release" as well as "debug". Only the last is effective, which is what the above check does. This is explained here:
http://doc.qt.digia.com/qt/qmake-function-reference.html#config-config