what should i do to disable the qDebug() method on the release version?
-
I used the command that
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_WARNNING_OUTPUT
to disable the qDebug() method.but the program is still running the qDebug() method on the release version.
-
I used the command that
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_WARNNING_OUTPUT
to disable the qDebug() method.but the program is still running the qDebug() method on the release version.
@nicker-player said in what should i do to disable the qDebug() method on the release version?:
DEFINES += QT_NO_WARNNING_OUTPUT
This is misspelled (you should always look things up and copy+paste not type, especially if English is not your native language), so if you are getting a warning it might be why?
If there are
qDebug()
statements in Qt code rather than explicitly in your own,#define
will make no difference. I do not know whether Qt's own Release libraries are are compiled withQT_NO_DEBUG_OUTPUT
or not.Correct the spelling and see where that gets you.