qmlcontextpropertydump
qmlcontextpropertydump は、C++ ソースフォルダをスキャンして、コンテキストプロパティの定義候補を検出し、それらをqmllintや QML Language Server。
qmlcontextpropertydumpは、CMake APIを介して使用するのが最適です。qt_add_qml_moduleは、適切な引数を指定してqmlcontextpropertydump を呼び出すグローバルなdump_qml_context_properties ターゲットを作成します。なお、ダンプファイルがすでに存在する場合、dump_qml_context_properties は何も実行しません。コンテキストプロパティのダンプを削除するには、clean_qml_context_properties ターゲットを使用してください。コンテキストプロパティのダンプファイルは、ビルドフォルダ内の<build>/.qt/contextPropertyDump.ini に配置されます。
© 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.