aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-04-17 13:33:41 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-04-17 19:43:26 +0000
commit125a1be999fdcf61a63a1bdb9296a4af8755b838 (patch)
treeb692e06e2121e607fe11f8a5be77068976926e4b
parent3a15c0ad74b7c2498dc312b873d62de460d9d92d (diff)
Baseline tests: grab the ApplicationWindow when testing Controls
When we test Quick Controls, then we use an ApplicationWindow. In that case, the GrabbingView never renders anything itself, so we have to wait for the afterRendering signal from the ApplicationWindow to start grabbing. Amends 278779e850ec5ad8ce96d5a2e7ef51eccf5166b8. Change-Id: Idee4107c0eac5945ebec7e083721c0f671d73b8a Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 8812fbc47df9a1f32c09259763db7593ff833f1c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/baseline/scenegraph/scenegrabber/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/baseline/scenegraph/scenegrabber/main.cpp b/tests/baseline/scenegraph/scenegrabber/main.cpp
index 046c535e24..7a55973d60 100644
--- a/tests/baseline/scenegraph/scenegrabber/main.cpp
+++ b/tests/baseline/scenegraph/scenegrabber/main.cpp
@@ -60,7 +60,7 @@ public:
appwindow = qobject_cast<QQuickApplicationWindow *>(window);
if (preferAppWindow)
- QObject::connect(this, &QQuickWindow::afterRendering, this, &GrabbingView::startGrabbing);
+ QObject::connect(appwindow, &QQuickWindow::afterRendering, this, &GrabbingView::startGrabbing);
}
QQuickApplicationWindow* appWindow() { return appwindow; }