aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/windowActiveAttached.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/snippets/qml/windowActiveAttached.qml')
-rw-r--r--src/quick/doc/snippets/qml/windowActiveAttached.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/doc/snippets/qml/windowActiveAttached.qml b/src/quick/doc/snippets/qml/windowActiveAttached.qml
new file mode 100644
index 0000000000..791091ef82
--- /dev/null
+++ b/src/quick/doc/snippets/qml/windowActiveAttached.qml
@@ -0,0 +1,10 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+//![entire]
+import QtQuick
+
+Text {
+ text: Window.active ? "active" : "inactive"
+}
+//![entire]