Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0, 6.0, 6.1
-
547f5761cb31600c9669ba205512fa0b6c7d36da (qt/qtdeclarative/dev)
Description
When using the on <property> feature of QQmlPropertyValueSource on an aliased property of a inline component, the QML engine fails:
Reproduction:
import QtQuick 2.12 import QtQuick.Controls 2.5 ApplicationWindow { visible: true component MyText: Text { id: myText property alias foo: myText.text property string bar text: bar } MyText { foo: "ok" } MyText { Binding on bar { value: "ok" } } MyText { id: myText Binding { target: myText property: "foo" value: "ok" } } MyText { Binding on foo { value: "ko" // QQmlApplicationEngine failed to load component } // qrc:/main.qml:30:20: Cannot assign to non-existent property "foo" } }
Attachments
Issue Links
- relates to
-
QTBUG-91143 QML inline components cannot reference alias properties
- Closed
For Gerrit Dashboard: QTBUG-85980 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341752,6 | Resolve inline components before root component | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |