davidovv
10th September 2012, 12:07
I am collecting general information about class (derived from QObject) and i want to display available properties, signals and slots.
in Qt 3 there was a method (found it on google)
QStrList QMetaObject::slotNames(bool super = FALSE)
that could collect all slots, even inherited
in Qt 4.7 iterating trough QMetaObject like in example
const QMetaObject* metaObject = obj->metaObject();
QStringList methods;
for(int i = metaObject->methodOffset(); i < metaObject->methodCount(); ++i)
methods << QString::fromLatin1(metaObject->method(i).signature());
I get all methods bot not inherited ones
What am i missing?
Is there a replacement for slotNames in qt 4.7?
in Qt 3 there was a method (found it on google)
QStrList QMetaObject::slotNames(bool super = FALSE)
that could collect all slots, even inherited
in Qt 4.7 iterating trough QMetaObject like in example
const QMetaObject* metaObject = obj->metaObject();
QStringList methods;
for(int i = metaObject->methodOffset(); i < metaObject->methodCount(); ++i)
methods << QString::fromLatin1(metaObject->method(i).signature());
I get all methods bot not inherited ones
What am i missing?
Is there a replacement for slotNames in qt 4.7?