qmlcontextpropertydump

qmlcontextpropertydump会扫描 C++ 源文件夹,查找潜在的上下文属性定义,并将其存储为qmllintQML Language Server.

qmlcontextpropertydump最好通过CMake API 使用:qt_add_qml_module创建一个全局dump_qml_context_properties target,使用正确的参数调用qmlcontextpropertydump 。请注意,当转储文件已经存在时,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.