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

qFatal() macro no longer works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.2.1, 5.3.0 RC1
    • Core: I/O

      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.

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

            kkohne Kai Köhne
            mkoller Martin Koller
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes