Well, the number of names isn't fixed is the point - they're loaded at runtime and will change (increase) from time to time.
Then an enumerator won't really help you. The point of an enumerator is that each entry is a constant.
If the names and values can change at runtime, you should use a QVariantMap or a JavaScript object.
If for each version of the program the set of names is fixed, and only the values change, then properties on a singleton are the better choice.
best regards, Ulf _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest