qt6-bb10/qtdeclarative/tests/auto/quick/qquickstates/data/anchorRewindBug.qml

38 lines
764 B
QML

import QtQuick 2.0
Rectangle {
id: container
color: "red"
height: 200
width: 200
Column {
id: column
objectName: "column"
anchors.left: container.right
anchors.bottom: container.bottom
Rectangle {
id: rectangle
color: "blue"
height: 100
width: 200
}
Rectangle {
color: "blue"
height: 100
width: 200
}
}
states: State {
name: "reanchored"
AnchorChanges {
target: column
anchors.left: undefined
anchors.right: container.right
}
PropertyChanges {
target: rectangle
visible: false
}
}
}