aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/nestedWindowTransientParent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/snippets/qml/nestedWindowTransientParent.qml')
-rw-r--r--src/quick/doc/snippets/qml/nestedWindowTransientParent.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/quick/doc/snippets/qml/nestedWindowTransientParent.qml b/src/quick/doc/snippets/qml/nestedWindowTransientParent.qml
new file mode 100644
index 0000000000..51f076172d
--- /dev/null
+++ b/src/quick/doc/snippets/qml/nestedWindowTransientParent.qml
@@ -0,0 +1,23 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+
+//![0]
+Window {
+ // visible is false by default
+ Window {
+ transientParent: null
+ visible: true
+ }
+//![0]
+
+ id: outer
+ Timer {
+ interval: 2000
+ running: true
+ onTriggered: outer.visible = true
+ }
+//![1]
+}
+//![1]