このページでは

プロジェクトの Qt バージョンを選択する

プロジェクトのデフォルト Qt バージョンとは別の Qt バージョンを選択するには、次のようにします:

  1. Solution Explorer でプロジェクトを右クリックし、コンテキスト・メニューからProperties を選択します。
  2. Configuration Properties >Qt Project Settings を選択します。

    Qt プロジェクト設定ダイアログ

  3. Qt Installation で、Qt のバージョンを選択します。

CMake プロジェクト

Qt アプリケーションのプロジェクトを作成またはロードするときに、Qt VS Tools は必要なファイルを作成します:CMakePresets.json と CMakeUserPresets.json です。

CMake プロジェクトで Qt のバージョンを選択します:

  1. CMakeUserPresets.jsonファイルで、表示名がコンフィギュレーションと一致する可視プリセット(つまり、"hidden":true というテキストがないプリセット)を見つけます。
  2. そのプリセットで、Tools >Options >Qt >Versions のように、"inherits" プロパティをターゲット Qt バージョンの登録名に設定します。

    プリセットがプリセットのリストから継承される場合、ターゲット Qt バージョンがリストで参照される唯一の Qt バージョンであることを確認してください。

    デフォルトの Qt バージョンを選択するには、"Qt-Default" を使用します。

変更に関する通知の非表示

Qt VS Tools は、プリセットを変更すると通知を表示します。通知を非表示にするには

  1. Extensions >Qt VS Tools >Options >Qt >General >Notifications にアクセスしてください。

    Qt 一般オプションの通知

  2. Qt VS Tools-managed CMake presets modified で、Disable を選択します。

Qt バージョンの追加と クロスコンパイルも参照してください 。

© 2026 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.