[Interest] [Qt6] Inject a QML enum from C++ at runtime

Ulf Hermann ulf.hermann at qt.io
Thu Jan 20 15:54:13 CET 2022


> I imagine I'm not supposed to do such stuff, but is it at all possible 
> to provide a QML enumerator at runtime from C++?

Why does it have to be an enumerator? To me it sounds like the values 
should be properties of a singleton. The code accessing them needs to 
know a fixed set of names after all.

best regards,
Ulf


More information about the Interest mailing list