このページでは

QML デバッグを有効にする

プロジェクトの QML デバッグを有効にするには

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

    プロジェクトのQMLデバッグを有効にする

  4. プロジェクトの設定を保存するには、OK を選択します。
  5. Build >Rebuild Solution を選択し、プロジェクトを再構築します。

QML デバッグを無効にする

QML デバッグエンジンによるすべての QML デバッグイベントの処理を無効にしま す:

  1. Extensions >Qt VS Tools >Options >Qt >General >QML Debugging に移動します。

    Qt 一般オプションでの QML デバッグ

  2. Process debug events をFalse に設定します。

これにより、デバッグ環境から QML デバッグエンジンが除外され、すべてのプロジェクトで QML コードのデバッグが無効になります。

デバッグ接続タイムアウトの設定

デバッグ接続のタイムアウトをミリ秒単位で増減します:

  1. Extensions >Qt VS Tools >Options >Qt >General >QML Debugging に移動します。
  2. Runtime connection timeout の値をミリ秒単位で設定します。

タイムアウトを削除するには、値をDisabled に設定します。

Tutorial:Qt Quick debugging,Cross-compile,Debug applications,Debug on Linux,DebuggingQt Quick applicationsも参照してください 。

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