diff --git a/src/projectManager.cpp b/src/projectManager.cpp
index f7cf843a1fc8ef84fe74cae3c2e7f314a7c66c5f..f479b48db4bf23f6246feb7fa863fd867abb1583 100644
--- a/src/projectManager.cpp
+++ b/src/projectManager.cpp
@@ -220,7 +220,7 @@ bool ProjectManager::runProject(const QString &projectPath)
     }
 
     const QStringList importPaths = getImportPaths(projectPath, qmlProjectFileContent);
-    if (isQt6Project(qmlProjectFileContent)) {
+    if (!isQt6Project(qmlProjectFileContent)) {
         qWarning() << "This is not a Qt6 project.\nQt5 projects might work, but they are not "
                       "officially supported.";
     }