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

Default QtMsgHandler

XMLWordPrintable

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

      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
      }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes