PDA

View Full Version : How do i access the object's properies?



ayanda83
2nd March 2013, 11:56
I've got an object that I want to read its data members using the QMetaObject properties instead of getters. I want to read this object inside the definition of another class. I've defined the properties but I'm having difficulty reading them, I don't know how to go about reading the property values. Help will be appreciated. thanks.

wysota
2nd March 2013, 12:24
QMetaObject::property(), QMetaProperty::read()

or simply

QObject::property()