Code: Alles auswählen
const QMetaObject *metaobject = metaObject();
int count = metaobject->propertyCount();
for (int i=0; i<count; ++i) {
QMetaProperty metaproperty = metaobject->property(i);
const char *name = metaproperty.name();
QVariant value = this->property(name);
varContact[name] = value;
qDebug() << name;
qDebug() << value;
}Ich habe gesucht, aber nichts gefunden.
Kann mir jemand einen Tritt in die richtige Richtung geben ?