diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-03-30 13:10:05 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-04-01 09:41:03 (GMT) |
commit | 84741443a8f7971e6b715f15f71f7a1a8ef05353 (patch) | |
tree | 1d36dc57aa873429459915e410e9bbfddb3c7bdb /src/corelib/global | |
parent | 14d9633f576429b29257ed43143abc6de3918e5d (diff) | |
download | Qt-84741443a8f7971e6b715f15f71f7a1a8ef05353.zip Qt-84741443a8f7971e6b715f15f71f7a1a8ef05353.tar.gz Qt-84741443a8f7971e6b715f15f71f7a1a8ef05353.tar.bz2 |
Changes: Clearifying docs on qInstallMsgHandler
Details: Added comment about QT_NO_WARNING_OUTPUT and/or QT_NO_DEBUG_OUTPUT on http://doc.trolltech.com/4.5/qtglobal.html#qInstallMsgHandler
Review-by: Geir Vattekar
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 69d0a53..1645279 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1934,9 +1934,11 @@ QString qt_error_string(int errorCode) The message handler is a function that prints out debug messages, warnings, critical and fatal error messages. The Qt library (debug - version) contains hundreds of warning messages that are printed + mode) contains hundreds of warning messages that are printed when internal errors (usually invalid function arguments) - occur. If you implement your own message handler, you get total + occur. Qt built in release mode also contains such warnings unless + QT_NO_WARNING_OUTPUT and/or QT_NO_DEBUG_OUTPUT have been set during + compilation. If you implement your own message handler, you get total control of these messages. The default message handler prints the message to the standard |