diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp index bb05a94386b..2c9b5e1dc47 100644 --- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp @@ -250,9 +250,11 @@ void tst_QComboBox::getSetCheck() // QCompleter *QComboBox::completer() // void QComboBox::setCompleter(QCompleter *) + QTest::ignoreMessage(QtWarningMsg, "Setting a QCompleter on non-editable QComboBox is not allowed."); obj1.setCompleter(nullptr); QCOMPARE(nullptr, obj1.completer()); QCompleter completer; + QTest::ignoreMessage(QtWarningMsg, "Setting a QCompleter on non-editable QComboBox is not allowed."); obj1.setCompleter(&completer); QVERIFY(obj1.completer() == nullptr); // no QLineEdit is set