Description
According to the docs, qFatal() should be used like qDebug() etc.
Using qFatal() in my code however results in a compilation error:
error: no matching function for call to ‘QMessageLogger::fatal()’
qFatal() << "...";
I believe this is due to the fact that there is no fatal() method (note: no arguments!) in QMessageLogger, but the qFatal macro is defined in the same way as the qDebug macro.
Attachments
Issue Links
- duplicates
-
QTBUG-8298 Make a stream version of qFatal()
- Closed