qmlcontextpropertydump

qmlcontextpropertydump durchsucht einen C++-Quellordner nach potentiellen Kontexteigenschaftsdefinitionen und speichert sie in einem Format, das von qmllint und QML Language Server.

qmlcontextpropertydump wird am besten über die CMake-API verwendet: qt_add_qml_module erzeugt ein globales dump_qml_context_properties Ziel, das qmlcontextpropertydump mit den richtigen Argumenten aufruft. Beachten Sie, dass dump_qml_context_properties nichts tut, wenn bereits eine Dump-Datei existiert. Verwenden Sie das Ziel clean_qml_context_properties, um den Dump der Kontexteigenschaften zu löschen. Die Kontexteigenschafts-Dumpdatei 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.