Details
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