This warning category is spelled [missing-enum-entry] by qmllint.
You used an enum value that does not exist.
The enum value will be undefined at runtime.
// Main.qml
import QtQuick
Item {
enum Hello { World }
Component.onCompleted: function() {
console.log(Main.Hello.Wordl, Main.Hello.Moon) // both Wordl and Moon are incorrect
}
}To fix this warning, correct a potential typo or add the missing enum value to the definition:
// Main.qml
import QtQuick
Item {
enum Hello { World, Moon }
Component.onCompleted: function() {
console.log(Main.Hello.World, Main.Hello.Moon) // both correct now
}
}
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qmllint-warnings-and-errors-missing-enum-entry.html