Does anyone know an officially supported way to include debug-build only code in Qt? For example:
#ifdef QT_DEBUG // do something #endif
Basica
An alternative is to write in your project file something like:
debug { DEFINES += MYPREFIX_DEBUG } release { DEFINES += MYPREFIX_RELEASE }
Then you will not depend on the Qt internal definition.