How to use enum in QML?
-
I can declare this in QML:
enum ObjectTypes { OT_Object1 = 100, OT_Object2 = 200 }But I cannot seem to use the values in any way. I tried using console.log of the enum values, but it says they don't exist. I get no errors when declaring the enum either. Is this fully implemented?
-
Why do I look and look and don't find, then find after I post?
https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#enumeration-attributes