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

Make a stream version of qFatal()

XMLWordPrintable

    • eb63f2eb0 (dev)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes