diff --git a/tests/tst_docks.cpp b/tests/tst_docks.cpp index 0edc032b..20dbc5d8 100644 --- a/tests/tst_docks.cpp +++ b/tests/tst_docks.cpp @@ -2761,7 +2761,7 @@ void TestDocks::tst_honourGeometryOfHiddenWindow() d1->show(); Testing::waitForEvent(d1, QEvent::Show); - QCOMPARE( d1->window()->geometry(), suggestedGeo); + QCOMPARE(d1->window()->windowHandle()->geometry(), suggestedGeo); delete d1->window(); }