L'entrée de l'énumération correspond à l'énumération
Cette catégorie d'avertissement est orthographiée [enum-entry-matches-enum] par qmllint.
L'entrée de l'énumération doit être nommée différemment de l'énumération elle-même.
Qu'est-ce qui s'est passé ?
Une énumération porte le même nom que l'une de ses entrées.
Pourquoi est-ce mauvais ?
Il peut y avoir une ambiguïté quant à la résolution d'une recherche, voir l'exemple ci-dessous.
Exemple
// Main.qml import QtQuick Item { enum E { A, B, C, D, E } property var v: Main.E // Does this refer to the enum or to its entry? }
Pour corriger cet avertissement, résolvez le conflit de nom en renommant soit l'énumération, soit l'entrée de l'énumération :
© 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.