Select Qt versions for a project
To select another Qt version than the default Qt version for a project:
- In Solution Explorer, right-click the project and go to Properties in the context menu.
- Select Configuration Properties > Qt Project Settings.
- In Qt Installation, select the Qt version.
CMake projects
When you create or load Qt application projects, Qt VS Tools creates the necessary files for you: CMakePresets.json and CMakeUserPresets.json.
To select a Qt version for a CMake project:
- In the CMakeUserPresets.json file, find the visible preset (that is, without the text
"hidden":true
) whose display name matches the configuration. - In that preset, set the
"inherits"
property to the registered name of the target Qt version, as it appears in Tools > Options > Qt > Versions.If the preset inherits from a list of presets, make sure that the target Qt version is the only Qt version referenced in the list.
To select the default Qt version, use
"Qt-Default"
.
See also Add Qt versions and Cross-compile.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.