Unsolved Can I add extra meta information to a property?
-
I'm trying to create a UI that relies on examining a QObject to find its properties. I need to supply a bit more information that what the basic Q_PROPERTY definition gives you. Is there any way to add extra information to my properties?
-
@kitfox What extra information do you want to add?
-
A simple map of string to values. For example, I'd like to attach a map like this to a property (even just a map of strings to strings would do):
"displayColor": QColor(100, 0, 0), "type": "vector", "userIndex": 5
-
@kitfox I would rather create a class/struct and put all this information there and use this class/struct as property type.