La entrada enum coincide con enum
Esta categoría de advertencia se escribe [enum-entry-matches-enum] por qmllint.
La entrada Enum debe tener un nombre distinto al del propio enum
¿Qué ha ocurrido?
Un enum tiene el mismo nombre que una de sus entradas.
¿Por qué es malo?
Puede haber ambigüedad en cuanto a lo que una búsqueda se resuelve, véase el ejemplo siguiente.
Ejemplo
// 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? }
Para corregir esta advertencia, resuelva el conflicto de nombres renombrando el enum o la entrada del enum:
© 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.