Hello, 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++?
I took a peek how the QML engine deals with enums, and it does appear it's technically feasible, provided there's some API, which understandingly isn't public. What I'd want to do is to read some configuration file/resource from C++ and fill out a set of named constants in QML based on it. In C++ I have no problem indirectly referring to the data, but it'd be advantageous for me for the QML part to refer to a set of scoped constants by name. Perhaps I'm thinking in the wrong direction, so if anyone has a suggestion, it is more than welcome. Thanks, Konstantin.
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest