diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp index 4bbf8f7b5c..337a7fecaa 100644 --- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp @@ -8,6 +8,7 @@ #include "qcombobox.h" #include #include +#include #include #include @@ -3642,6 +3643,9 @@ void tst_QComboBox::cancelClosesPopupNotDialog() if (QGuiApplication::platformName() == "offscreen") QSKIP("The offscreen platform plugin doesn't activate popups."); + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation)) + QSKIP("QWindow::requestActivate() is not supported."); + QDialog dialog; QComboBox combobox; combobox.addItems({"A", "B", "C"});