Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.8
-
None
-
-
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".