Details
-
Suggestion
-
Resolution: Fixed
-
P4: Low
-
4.6.2
-
None
-
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
- is duplicated by
-
QTBUG-38992 qFatal() macro no longer works
-
- Closed
-
For Gerrit Dashboard: QTBUG-8298 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
446582,3 | QMessageLogger: make qFatal categorized and streamable | dev | qt/qtbase | Status: MERGED | +2 | 0 |