aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/data/earlyGrab.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickwindow/data/earlyGrab.qml')
-rw-r--r--tests/auto/quick/qquickwindow/data/earlyGrab.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickwindow/data/earlyGrab.qml b/tests/auto/quick/qquickwindow/data/earlyGrab.qml
new file mode 100644
index 0000000000..74427c9492
--- /dev/null
+++ b/tests/auto/quick/qquickwindow/data/earlyGrab.qml
@@ -0,0 +1,25 @@
+import QtQuick
+import Test
+
+Window {
+ id: window
+ width: 400
+ height: 400
+ color: "red"
+
+ // Important for the test to set visible early on, not wait until
+ // show() from C++. What is really verified here is that the
+ // content grabbing takes the real window state into account
+ // (visible vs. exposed).
+ visible: true
+
+ Grabber {
+ id: grabber
+ objectName: "grabber"
+ }
+
+ Item {
+ anchors.fill: parent
+ Component.onCompleted: grabber.grab(window)
+ }
+}