Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-388

Default QtMsgHandler

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.2.2
    • Other
    • None

    Description

      It would be great if there was a default message handler on all platforms. If this was the case, one could simply do something like:

      QtMsgHandler defaultMsgHandler = qInstallMsgHandler(myMsgHandler);

      void myMsgHandler(QtMsgType type, const char* msg)
      {
      defaultMsgHandler(type, msg);
      doSomethingElse(type, msg); // for example, write to a log
      }

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              fenglich Frans Englich (closed Nokia identity)
              admin Administrator
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes