PDA

View Full Version : Getting object's property...



gilamran
18th February 2011, 16:32
Hi,
I have a QObject that I know it has a property named userName.
I've used the metaObject to get all the QObject properties.

How can I get the value of this property from the QObject without casting!

Thanks
Gil.

wysota
18th February 2011, 17:07
QVariant val = obj->property("userName");