diff options
-rw-r--r-- | tests/auto/qwidget_window/tst_qwidget_window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qwidget_window/tst_qwidget_window.cpp b/tests/auto/qwidget_window/tst_qwidget_window.cpp index 505ee29..c8b2762 100644 --- a/tests/auto/qwidget_window/tst_qwidget_window.cpp +++ b/tests/auto/qwidget_window/tst_qwidget_window.cpp @@ -299,6 +299,7 @@ void tst_QWidget_window::tst_showWithoutActivating() QLineEdit *lineEdit = new QLineEdit; lineEdit->setAttribute(Qt::WA_ShowWithoutActivating, true); lineEdit->show(); + QTest::qWaitForWindowShown(lineEdit); lineEdit->setAttribute(Qt::WA_ShowWithoutActivating, false); lineEdit->raise(); lineEdit->activateWindow(); |