diff --git a/qtactiveqt.pro b/qtactiveqt.pro
index 039aaaddebd97095baed9e9faf48db53142c22fb..45b79f10e5c344a6132fc83fbe1be3ca8dafcafc 100644
--- a/qtactiveqt.pro
+++ b/qtactiveqt.pro
@@ -1,3 +1,5 @@
+requires(qtHaveModule(widgets))
+
 CONFIG += tests_need_tools
 load(qt_parts)