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

QQmlMetaType::prettyTypeName sometimes returns non-pretty name

    XMLWordPrintable

Details

    • All
    • 864db17dd (dev), 3e7c52f1f (6.8)

    Description

      QQmlMetaType::prettyTypeName() for a QQuickText in most cases returns "Text", but has been observed to return "QQuickText" as well.

      This causes problems for tests that check for errors, such as "QML Text Cannot open:", assuming that the code in qquicktext.cpp will always get a pretty name:

      qmlWarning(this) << "Cannot open: " << url.toString(); 

      When debugging a reproducible case of this the `QQmlMetaType::qmlType(object->metaObject())` call returned a "QtQuick.Templates/" QmlType, while in the successful case it returned "QtQuick/Text".

      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
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes