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

qmlDebug(), qmlInfo(), qmlWarning() - where is qmlCritical(), qmlFatal()?

    XMLWordPrintable

Details

    • All

    Description

      I'm logging messages from C++ code for QObjects that have been instantiated from QML, using qmlDebug(), qmlInfo(), and qmlWarning().

      Now I need qmlCritical() and qmlFatal() as well, but find that they don't exist. Why?

      Second, I notice that the "QtQml Namespace" page documenting these functions has disappeared in Qt 6 - the last available version is 5.15. Are these functions deprecated? If so, what could I use instead to get QML context for logging from C++?

      Cheers

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            linoleo Lino Schraudolph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes