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

Make a stream version of qFatal()

    XMLWordPrintable

Details

    • eb63f2eb0 (dev)

    Description

      You'd make a qFatal() stream version. The "qDebug() << 123;" form exists for qWarning() and qCritical(), why not make it for qFatal() too?

      It's as easy as this:

      inline QDebug qFatal()

      { return QDebug(QtFatalMsg); }

      And if you're worried about calling exit(), just do it from QDebug's destructor if the message type is QtFatalMsg.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-8298
          # Subject Branch Project Status CR V

          Activity

            People

              cnn Qt Core & Network
              philippe.vaucher Philippe Vaucher
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes