I tried to configure the build process using the release/debug scopes in the qmake project file. For example I wanted to include some files and add a define in debug mode:
Qt Code:
  1. debug {
  2. DEFINES += MODELTEST_RULETABLEMODEL
  3. INCLUDEPATH += 3rdparty/modeltest
  4. }
To copy to clipboard, switch view to plain text mode 
But even with "CONFIG += qt release uitools warn_on" the define and include from the debug scope are added to the Makefile.xxx.release. I had to add a "CONFIG -= debug" to the release project file as a workaround.

Am I misunderstanding/-using the release/debug scope??

Another problem: I wanted to disable debuging output by adding the define QT_NO_DEBUG_OUTPUT to the release scope. But then my app won't compile anymore as I used qDebug() << ...; often instead of qDebug("...", ...);. If I had known this in advance... I had thought that all qDebug("...", ...) and qDebug << ... calls would not be compiled in when not compiling the project in debug mode... and disabling does not work as expected...

Any workaround for this issue?

Thanks in advance,
-Jens