Revision 1a3b37ba
Von Christian Ehringfeld vor mehr als 10 Jahren hinzugefügt
| example/main.cpp | ||
|---|---|---|
|
|
||
|
Pupil *p = new Pupil();
|
||
|
auto hash = p->getMetaProperties();
|
||
|
auto iterator = hash.constBegin();
|
||
|
while(iterator != hash.constEnd()) {
|
||
|
qDebug() << iterator.key() << " Value:" << iterator.value().read(p);
|
||
|
|
||
|
iterator++;
|
||
|
}
|
||
|
// auto iterator = hash.constBegin();
|
||
|
// while(iterator != hash.constEnd()) {
|
||
|
// qDebug() << iterator.key() << " Value:" << iterator.value().read(p);
|
||
|
|
||
|
// iterator++;
|
||
|
// }
|
||
|
qDebug() << p->metaObject()->superClass()->className();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
Auch abrufbar als: Unified diff
Inheritance gedöns