aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
blob: 8c409781d4085e2a5f66652317c319ffb91233fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
                    Component.onCompleted: {
                        root.transientWindow = inner;
                        inner.show();
                    }
                }
            }
            Component.onDestruction: {
                loader2.active = false;
            }
        }
    }
}