This warning category is spelled
[enum-entry-matches-enum]
by qmllint.
An enum has the same name as one of its entries.
There can be ambiguity as to what a lookup resolves to, see example below.
// 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? }
To fix this warning, resolve the name clash by renaming either the enum or the enum entry:
// Main.qml import QtQuick Item { enum Enum { A, B, C, D, E } property var v: Main.E // v contains Enum.E. No more ambiguity is possible }