Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.8.2
-
None
Description
Binding component nested in Loader and StackView leads to segfault in a following setup:
pragma ComponentBehavior: Bound import QtQuick import QtQuick.Controls Window { id: root visible: true property Page page StackView { id: stack anchors.fill: parent initialItem: initialComponent } Component { id: initialComponent Loader { sourceComponent: pageComponent } } Component { id: pageComponent Page { id: page contentItem: Item { Button { text: "reload" onClicked: { stack.clear() stack.push(initialComponent) } } } Binding { target: root restoreMode: Binding.RestoreValue property: "page" value: page } } } }
Clicking "reload" several times leads to segfault.
The same code works fine under 5.15.2
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-135295 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
632203,1 | Binding: don't restore value if object is marked for deletion | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |