How to disable messages from QDebug object while build for release
Unsolved
General and Desktop
-
set(CMAKE_BUILD_TYPE RELEASE)
Will disable all messages printed using
qDebug() << "msg";
But messages printed like this
QDebug dbg(QtDebugMsg); ... dbg << "[" << index[i] << "]"; ... dbg << symbols[i][j].getC(); ... ...
are not disabled
-
Install a custom message handler and / or
use the second version.do not use the second version -
what "second version"?
-
@anphetamina I meant 'do not use the second version', sorry