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@qt-project.org https://lists.qt-project.org/listinfo/interest