qmlcontextpropertydump

qmlcontextpropertydump esegue la scansione di una cartella di sorgenti C++ alla ricerca di potenziali definizioni di proprietà di contesto e le memorizza in un formato leggibile da qmllint e QML Language Server.

È consigliabile utilizzare`qmlcontextpropertydump` tramite l’API di CMake: `qt_add_qml_module` crea un target globale ` dump_qml_context_properties ` che richiama ` qmlcontextpropertydump ` con gli argomenti corretti. Si noti che ` dump_qml_context_properties ` non esegue alcuna operazione se esiste già un file di dump. Utilizzare il target ` clean_qml_context_properties ` per eliminare il dump delle proprietà di contesto. Il file di dump delle proprietà di contesto si trova nella cartella di compilazione all’indirizzo ` <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.