You can get the list of all dynamic properties using QObject::dynamicPropertyNames()
. For example:
QList<QByteArray> dynamicProperties = object->dynamicPropertyNames();
To get the property value use the same QObject::property(const char * name )
function:
QVariant val = object->property(name );