diff options
Diffstat (limited to 'tests/auto/qquickheaderview/tst_qquickheaderview.cpp')
-rw-r--r-- | tests/auto/qquickheaderview/tst_qquickheaderview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qquickheaderview/tst_qquickheaderview.cpp b/tests/auto/qquickheaderview/tst_qquickheaderview.cpp index 64f769e8..611e39cb 100644 --- a/tests/auto/qquickheaderview/tst_qquickheaderview.cpp +++ b/tests/auto/qquickheaderview/tst_qquickheaderview.cpp @@ -359,6 +359,9 @@ void tst_QQuickHeaderView::listModel() QScopedPointer<QObject> root(component.create()); QVERIFY2(root, qPrintable(component.errorString())); + if (!QTest::qWaitForWindowActive(qobject_cast<QWindow *>(root.data()))) + QSKIP("Window failed to become active!"); + auto hhv = root->findChild<QQuickHorizontalHeaderView *>("horizontalHeader"); QVERIFY(hhv); auto vhv = root->findChild<QQuickVerticalHeaderView *>("verticalHeader"); |