Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0
-
None
Description
The following example demonstrates the issue:
// Test.qml import QtQuick 2.0 Item { id: root property string myText: "hello world" ChangeTest { id: changeTest text: myText } states: State { name: "changed" PropertyChanges { target: changeTest text: "" } } MouseArea { anchors.fill: parent onClicked: { if (root.state == "") root.state = "changed" else { root.state = "" myText = "goodbye" } } } } //ChangeTest.qml import QtQuick 2.0 Item { property alias text: myText.text Text { id: myText } }
When clicking a second time, the text should change to "goodbye". Instead, with Qt 5.6 (and a recent dev) it stays as "hello world"
Attachments
For Gerrit Dashboard: QTBUG-58271 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
184013,1 | Enable PropertyChanges to correctly restore binding on alias | dev | qt/qtdeclarative | Status: ABANDONED | +2 | 0 |
184438,2 | Enable PropertyChanges to correctly restore binding on alias | 5.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
184475,2 | Enable PropertyChanges to correctly restore binding on alias | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |