QT_QMLLINT_CONTEXT_PROPERTY_DUMP
Aktiviert die Ausgabe von Kontexteigenschaften in Lint-Zielen.
Diese Variable wurde in Qt 6.11 eingeführt.
Wenn die Variable „ QT_QMLLINT_CONTEXT_PROPERTY_DUMP “ aktiviert ist, führen von `qt_add_qml_module()` erstellte Lint-Ziele vor der Ausführung von `qmllint` den Befehl `qmlcontextpropertydump` aus. Dadurch kann `qmllint` Warnungen zur Verwendung von Kontexteigenschaften in QML ausgeben.
Um diese Funktion zu aktivieren, setzen Sie die Variable „ QT_QMLLINT_CONTEXT_PROPERTY_DUMP “ mit einer der folgenden Methoden:
- Übergeben Sie die Option an die CMake-Ausführungsdatei:
-DQT_QMLLINT_CONTEXT_PROPERTY_DUMP=ON - Fügen Sie die Einstellung vor dem ersten Aufruf von ` qt_add_qml_module()` in Ihre `
CMakeLists.txt`-Datei ein:set(QT_QMLLINT_CONTEXT_PROPERTY_DUMP ON)
© 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.