QT_QMLLINT_CONTEXT_PROPERTY_DUMP

lintターゲットでのコンテキストプロパティのダンプを有効にします。

この変数は Qt 6.11 で導入されました。

QT_QMLLINT_CONTEXT_PROPERTY_DUMP 変数が有効になっている場合、qt_add_qml_module()によって作成されたlintターゲットは、qmllintを実行する前にqmlcontextpropertydumpを実行します。これにより、qmllintはQMLにおけるコンテキストプロパティの使用について警告を出すことができます。

この機能を有効にするには、次のいずれかの方法でQT_QMLLINT_CONTEXT_PROPERTY_DUMP 変数を設定してください。

  • CMake 実行ファイルにオプションを指定します:
    -DQT_QMLLINT_CONTEXT_PROPERTY_DUMP=ON
  • CMakeLists.txt ファイルの、qt_add_qml_module() の最初の呼び出しの前に、以下の設定を追加します:
    set(QT_QMLLINT_CONTEXT_PROPERTY_DUMP ON)

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