diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp index 7cdf0b26bd1..2a356f574c1 100644 --- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp @@ -3215,12 +3215,12 @@ void tst_QComboBox::task_QTBUG_49831_scrollerNotActivated() box.setModel(&model); box.setCurrentIndex(500); box.show(); - QTest::qWaitForWindowShown(&box); + QTest::qWaitForWindowExposed(&box); QTest::mouseMove(&box, QPoint(5, 5), 100); box.showPopup(); QFrame *container = box.findChild(); QVERIFY(container); - QTest::qWaitForWindowShown(container); + QTest::qWaitForWindowExposed(container); QList scrollers = container->findChildren(); // Not all styles support scrollers. We rely only on those platforms that do to catch any regression.