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
  • qt_add_qml_module を最初に呼び出す前に、CMakeLists.txt ファイルに設定を追加する:
    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.