Warning and Debugging Messages:
qInfo()
is used for informational messages.qWarning()
is used to report warnings and recoverable errors in your application.If the
QT_FATAL_WARNINGS
environment variable is set,qWarning()
exits after printing the warning message. This makes it easy to obtain a backtrace in the debugger.
Calls the message handler with the warning message message… This function does nothing if
QT_NO_WARNING_OUTPUT
was defined during compilation; it exits if at the nth warning corresponding to the counter in environment variableQT_FATAL_WARNINGS
.
This PR allows more productive debugging using the environment variable QT_FATAL_WARNINGS
.
Examples:
The behavior, when option -debug=qt
is set/unset, remains unchanged.