Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
5.9.3
-
None
Description
C++ CODE: class MyClass : QObject { Q_OBJECT enum MyEnum { Invalid = -1, Valid1, Valid2 } Q_ENUMS( MyEnum ) }; QML CODE: function check() { console.log( typeof( MyClass.Invalid ) ); // Returns "undefined" console.log( typeof( MyClass.Valid1 ) ); // Returns "number" as expected }
We've worked around this issue for a long time, but when I ran into it again and did a search I found several old bug reports that seemed to be closed as fixed. However it seems they are not fixed anymore.
QTBUG-21764
QTBUG-21672