diff options
Diffstat (limited to 'tests/auto/quick/qquickitem/data/setParentInWindowChange.qml')
-rw-r--r-- | tests/auto/quick/qquickitem/data/setParentInWindowChange.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitem/data/setParentInWindowChange.qml b/tests/auto/quick/qquickitem/data/setParentInWindowChange.qml new file mode 100644 index 0000000000..d68b7adb72 --- /dev/null +++ b/tests/auto/quick/qquickitem/data/setParentInWindowChange.qml @@ -0,0 +1,12 @@ +import QtQuick 2.12 + +Rectangle { + width: 800 + height: 600 + Item { + id: it + onWindowChanged: () => it.parent = newParent + } + + Item { id: newParent } +} |