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

qFatal() macro no longer works

    XMLWordPrintable

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes