Add "Minimal required Qt version: Qt 6" option to QQ application wizards

Provide a Qt 6 option that does not use any versioned imports.

Also make Qt 5.15 the new default.

Fixes: QTCREATORBUG-24973
Change-Id: I43714e5e344d1d91d35c5ad298edf28bc32ff7d6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Kai Köhne
2021-05-06 14:45:52 +02:00
committed by Kai Koehne
parent 84c37d5c27
commit 53c0b82a93
6 changed files with 59 additions and 10 deletions

View File

@@ -495,6 +495,10 @@ QSet<Id> BaseQtVersion::availableFeatures() const
if (qtVersion().matches(5, 15))
return features;
// Qt 6 uses versionless imports
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_PREFIX, 6, -1));
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_CONTROLS_2_PREFIX, 6, -1));
return features;
}