QtQuickApplication Template: set mininum Qt version

Don't set the version in the find_package()-call as that overrides the
Qt kit selected in the wizard by the user, when available. Instead, set
the REQUIRES to the manually selected minimum version.

Task-number: QTCREATORBUG-31628
Change-Id: Ic010b4bcfb7e1065d8dcc2d7fe726d32f76dafb3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Sami Shalayel
2024-09-24 16:40:12 +02:00
parent 3004ebc0af
commit 6a8f3d82d2

View File

@@ -7,11 +7,11 @@ set(CMAKE_AUTOMOC ON)
@endif
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 %{MinimumSupportedQtVersion} REQUIRED COMPONENTS Quick)
find_package(Qt6 REQUIRED COMPONENTS Quick)
@if %{HasQSPSetup}
@if %{UsesAutoResourcePrefix}
qt_standard_project_setup(REQUIRES 6.5)
qt_standard_project_setup(REQUIRES %{MinimumSupportedQtVersion})
@else
qt_standard_project_setup()
@endif