This warning category is spelled
[non-root-enum]
by qmllint.
An enum was declared outside of the root element of the component.
It won't be accessible. Enums are accessed as <component name>.<optional enum name>.<enum entry>. If the enum is not at the root of the component, this lookup won't work.
// Main.qml import QtQuick Item { Item { id: item enum Color { Red, Green, Blue } } }
To fix this warning, move the enum to the root of the component:
// Main.qml import QtQuick Item { enum Color { Red, Green, Blue } // Accessible in Main.qml but also from other files Item { id: item } }