qmlcontextpropertydump | Qt Qml | Qt 6.12.0
Description: A tool that searches for context property definitions in C++ code.

- Qt 6.12
- Qt Qml
- Qt Qml Tooling
- qmlcontextpropertydump
- Qt 6.12.0 Reference Documentation

qmlimportscanner ◦ CMake Integration for QML

# 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`.

qmlimportscanner ◦ CMake Integration for QML