Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5, 6.8, 6.9
-
None
-
064ea3c49 (dev), d918cd2dc (6.9), b8c924bb4 (6.8)
Description
The setup like that:
// Main.qml import QtQuick import Qt.labs.settings Window { id: root visible: true Test {} property Settings settings: Settings {} }
// Test.qml import QtQuick import QtCore Item {}
fails to load with a following error:
QQmlApplicationEngine failed to load component qrc:/qt/qml/qt6_test_project/Main.qml:11:33: Cannot assign object of type "Settings" to property of type "QQmlSettings*" as the former is neither the same as the latter nor a sub-class of it.
However it works fine when there is no `import QtCore` in Test.qml