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

Jason H jhihn at gmx.com
Fri Mar 20 05:53:54 CET 2020


That's only part of it.  I want Qt to support it too, mainly for console-qDebug output, but all for use in UI. (Imagine a text element that displays a socket state as it's text.) 

> Sent: Thursday, March 19, 2020 at 4:54 PM
> From: "Max Paperno" <max-l at wdg.us>
> To: interest at qt-project.org
> Subject: Re: [Interest] Will Qt6 end this enum issue? (or even 5.15?)
>
> 
> 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
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


More information about the Interest mailing list