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
Attachments
For Gerrit Dashboard: QTBUG-135039 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
634414,1 | QQmlSettings: Avoid ODR violation between Core and Labs | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: NEW | 0 | 0 |
633999,3 | QQmlSettings: Avoid ODR violation between Core and Labs | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
634159,2 | QQmlSettings: Avoid ODR violation between Core and Labs | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
634316,2 | QQmlSettings: Avoid ODR violation between Core and Labs | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |