Adding "User information" to a QMetaProperty
-
Is there any way to add "user information" to a QMetaProperty? That is, information which isn't relevant for the Qt property system itself, but which is nevertheless stored with the properties's meta information and accessible by code.
In my case, I need a version information for each property (e.g. "exists since version 2.1")
-
Maybe a good solution for you will be "Q_CLASSINFO":http://doc.qt.digia.com/4.8-snapshot/qobject.html#Q_CLASSINFO
I did not saw any possibility, to add some extra information to single property. But I also do not dig deeply into documentation.
-
Thanks, I wasn't aware of this. It's not exactly what I'm looking for, but I might find a way to make it work for this.