- Qt 6.11
- Qt Qml
- Qt Qml Tooling
- qmlcontextpropertydump
- Qt 6.11.1 Reference Documentation

qmlimportscanner ◦ svgtoqml

# qmlcontextpropertydump

qmlcontextpropertydump scans a C++ source folder for potential context property definitions, and stores them in a format readable by qmllint and QML Language Server.

qmlcontextpropertydump is best used via the CMake API: qt_add_qml_module creates a global `dump_qml_context_properties` target that invokes `qmlcontextpropertydump` with the right arguments. Note that `dump_qml_context_properties` does nothing when a dump file already exists. Use the `clean_qml_context_properties` target to delete the context property dump. The context property dump file is located in the build folder at `<build>/.qt/contextPropertyDump.ini`.