Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.3.0
-
d28f088371 (qt/qtdeclarative/dev) d28f088371 (qt/tqtc-qtdeclarative/dev) aaa081f12d (qt/qtdeclarative/6.4) aaa081f12d (qt/tqtc-qtdeclarative/6.4)
Description
SubComponent.qml:
Item {
property bool setMe: false
}
Component.qml:
Item { property alias firstComponent: firstComponent SubComponent { id: firstComponent } }
main.qml:
Item {
MainComponent{
firstComponent.setMe: true
}
}
when using the type compiler, the code generation fails with: "QML base type has unknown origin. Do you miss an import?".
as a workaround one can set `firstComponent.setMe` inside a `Component.onCompleted` handler, but one cannot initialize the setMe property via the property alias directly
Attachments
For Gerrit Dashboard: QTBUG-103956 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
414415,3 | Remember QML document context in each qmltc-generated object | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
415338,3 | Remember QML document context in each qmltc-generated object | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |