QT_QMLLINT_CONTEXT_PROPERTY_DUMP
Aktiviert das Dumping von Kontexteigenschaften in Lint-Targets.
Diese Variable wurde in Qt 6.11 eingeführt.
Wenn die Variable QT_QMLLINT_CONTEXT_PROPERTY_DUMP aktiviert ist, werden Linting-Targets, die mit qt_add_qml_module erstellt wurden, qmlcontextpropertydump ausführen, bevor qmllint gestartet wird. Dies erlaubt qmllint, vor der Verwendung von Kontexteigenschaften in QML zu warnen.
Um diese Funktion zu aktivieren, setzen Sie die Variable QT_QMLLINT_CONTEXT_PROPERTY_DUMP mit einer der folgenden Methoden:
- Übergeben Sie die Option an das CMake-Executable:
-DQT_QMLLINT_CONTEXT_PROPERTY_DUMP=ON
- Fügen Sie die Einstellung in Ihre
CMakeLists.txtDatei vor dem ersten Aufruf von qt_add_qml_module 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.