QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Active la sortie des propriétés de 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écutent qmlcontextpropertydump avant d'exécuter qmllint. Cela permet à qmllint d'émettre des avertissements concernant l'utilisation des propriétés de contexte dans QML.

Pour activer cette fonctionnalité, définissez la variable QT_QMLLINT_CONTEXT_PROPERTY_DUMP à l'aide de l'une des méthodes suivantes :

  • Transmettez l'option à l'exécutable CMake :
    -DQT_QMLLINT_CONTEXT_PROPERTY_DUMP=ON
  • Ajoutez ce 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.