[Development] QML: Why C++11 scoped enums are not scoped in QML ?
thiago.macieira at intel.com
Tue Jul 26 17:33:31 CEST 2016
Em terça-feira, 26 de julho de 2016, às 17:50:38 PDT, BogDan Vatra escreveu:
> Is there any reason why C++11 scoped enums are not scoped in QML ?
There's no trait to tell apart a scoped enum from an unscoped one. An enum is
en enum, that's all.
If you want a given enum to be scoped in QML, it should be a QML engine
feature and should be available to any C++ enum, whether it's scoped or not.
> If I have something like the following code in C++
This is all the engine sees. It's an enum.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development