- 
    Suggestion 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.7.0
- 
    None
If I have something like the following code in C++
class MyClass : public QObject { Q_OBJECT public: enum class MyEnum : uint16_t { Val1, Val2, } Q_ENUM(MyEnum) ); // register the type
I'd like to use it in QML as:
console.log(MyClass.MyEnum.Val1)
not as
console.log(MyClass.Val1)
and will be even nicer, if we could use it as a type
property MyClass.MyEnum : MyClass.MyEnum.Val1
- is required for
- 
                     QTBUG-54982
        Add a way to register Q_NAMESPACE enums to QML QTBUG-54982
        Add a way to register Q_NAMESPACE enums to QML-         
- Closed
 
-         
- relates to
- 
                    QTBUG-14861 Allow enum types to be defined from QML side -         
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-54961 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 191687,11 | C++11 scoped enum support for QML | dev | qt/qtdeclarative | Status: MERGED | -2 | 0 |