tst_QGL::graphicsViewClipping: Wait for viewport's window handle
The QWidget overload of qWaitForWindowExposed waits for the widget's top level QWindow, which for the viewport is the graphics-view. We want to explicitly wait for the viewport to be exposed, as the viewport is covering the whole graphics-view, preventing it from being exposed. See a6991376c. Change-Id: I86df43871126562f09e4ce14931bc6fc7f06263d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
b2cb4c73d3
commit
64bce9bbff
@ -868,7 +868,7 @@ void tst_QGL::graphicsViewClipping()
|
||||
|
||||
scene.setSceneRect(view.viewport()->rect());
|
||||
|
||||
QVERIFY(QTest::qWaitForWindowExposed(view.viewport()));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(view.viewport()->windowHandle()));
|
||||
#ifdef Q_OS_MAC
|
||||
// The black rectangle jumps from the center to the upper left for some reason.
|
||||
QTest::qWait(100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user