aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickwindow/data/unloadSubWindow.qml')
-rw-r--r--tests/auto/quick/qquickwindow/data/unloadSubWindow.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml b/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
new file mode 100644
index 0000000000..bf9df4867d
--- /dev/null
+++ b/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.3
+import QtQuick.Window 2.2
+
+Window {
+ id: root
+ property var transientWindow
+ property Loader loader1: Loader {
+ sourceComponent: Item {
+ Loader {
+ id: loader2
+ sourceComponent : Window {
+ id: inner
+ visible: true
+ Component.onCompleted: root.transientWindow = inner
+ }
+ }
+ Component.onDestruction: {
+ loader2.active = false;
+ }
+ }
+ }
+}