Entradas enum duplicadas
Esta categoría de advertencia se escribe [duplicate-enum-entries] por qmllint.
La clave Enum X ya ha sido declarada
¿Qué ha ocurrido?
Un enum contiene dos entradas idénticas.
¿Por qué es malo?
La misma clave está asociada con múltiples valores. No está claro cuál se utilizará.
Ejemplo
import QtQuick
Item {
enum E { A = 0, B = 1, C = 2, A = 3 }
}Para corregir esta advertencia, elimine o cambie el nombre de las entradas de enum duplicadas:
import QtQuick
Item {
enum E { A = 0, B = 1, C = 2, D = 3 }
}© 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.