diff --git a/qtcreator.pri b/qtcreator.pri
index e7a942be75b91d0019d66ff46daf7a755a3ea881..d45f25e375a30fa9dfdafabd49485745c142955d 100644
--- a/qtcreator.pri
+++ b/qtcreator.pri
@@ -50,6 +50,9 @@ defineTest(minQtVersion) {
             return(true)
         }
     }
+    greaterThan(QT_MAJOR_VERSION, $$maj) {
+        return(true)
+    }
     return(false)
 }