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

Export default message handler

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.2.2, 4.8.2
    • Core: I/O

    Description

      [cloned from the QTBUG-388; this would still be a usefull feature to be implemented.]

      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

              kkohne Kai Köhne
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes