QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Active le dumping des propriétés du contexte dans les cibles lint.

Cette variable a été introduite dans Qt 6.11.

Lorsque la variable QT_QMLLINT_CONTEXT_PROPERTY_DUMP est activée, les cibles de linting créées par qt_add_qml_module exécuteront qmlcontextpropertydump avant d'exécuter qmllint. Cela permet à qmllint d'avertir sur l'utilisation des propriétés de contexte dans QML.

Pour activer cette fonctionnalité, définissez la variable QT_QMLLINT_CONTEXT_PROPERTY_DUMP en utilisant l'une des méthodes suivantes :

  • Passez l'option à l'exécutable CMake :
    -DQT_QMLLINT_CONTEXT_PROPERTY_DUMP=ON
  • Ajouter le paramètre à votre fichier CMakeLists.txt avant le premier appel à qt_add_qml_module:
    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.