diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index 2ecfd262330..ba6c0bf2f8d 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -12486,6 +12486,8 @@ void tst_QWidget::synthMouseDoubleClick() widget.setWindowTitle(QLatin1String(QTest::currentTestFunction())); widget.show(); QWindow* window = widget.windowHandle(); + + QVERIFY(ensurePositionTopLeft(window)); QVERIFY(QTest::qWaitForWindowExposed(window)); // tap once; move slightly from press to release