qmlcontextpropertydump

qmlcontextpropertydump durchsucht einen C++-Quellordner nach möglichen Kontext-Eigenschaftsdefinitionen und speichert diese in einem Format, das von qmllint und QML Language Server.

„qmlcontextpropertydump“ wird am besten über die CMake-API verwendet: „qt_add_qml_module“ erstellt ein globales Ziel „ dump_qml_context_properties “, das „ qmlcontextpropertydump “ mit den richtigen Argumenten aufruft. Beachten Sie, dass „ dump_qml_context_properties “ nichts tut, wenn bereits eine Dump-Datei vorhanden ist. Verwenden Sie das Ziel „ clean_qml_context_properties “, um den Kontext-Eigenschafts-Dump zu löschen. Die Kontext-Eigenschafts-Dump-Datei befindet sich im Build-Ordner unter „ <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.