[Interest] Will Qt6 end this enum issue? (or even 5.15?)

Max Paperno max-l at wdg.us
Thu Mar 19 16:54:53 CET 2020


On 3/19/2020 11:07 AM, Jérôme Godbout wrote:
> I always put my Enum into C++, the sad part is that you need to create a dummy class to be exposeed to contain the enum. This make it possible to use the enum into Qml and C++. 

You know you can use a namespace instead, right? Not sure that's more 
fun :) , but it feels a little cleaner than a "dummy" qgadget/qobject 
class, IMHO.

https://stackoverflow.com/questions/20089196/how-to-access-c-enum-from-qml/48106787#48106787

Cheers,
-Max



More information about the Interest mailing list