diff --git a/tests/auto/opengl/qgl/tst_qgl.cpp b/tests/auto/opengl/qgl/tst_qgl.cpp index 46e2345c6a..7666bf81e4 100644 --- a/tests/auto/opengl/qgl/tst_qgl.cpp +++ b/tests/auto/opengl/qgl/tst_qgl.cpp @@ -923,8 +923,7 @@ void tst_QGL::partialGLWidgetUpdates() widget.setFixedSize(150, 150); widget.setAutoFillBackground(autoFillBackground); widget.show(); - - QTest::qWait(200); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); if (widget.format().doubleBuffer() != doubleBufferedContext) QSKIP("Platform does not support requested format");