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)
To copy to clipboard, switch view to plain text mode
that could collect all slots, even inherited
in Qt 4.7 iterating trough QMetaObject like in example
for(int i = metaObject->methodOffset(); i < metaObject->methodCount(); ++i)
methods <<
QString::fromLatin1(metaObject
->method
(i
).
signature());
const QMetaObject* metaObject = obj->metaObject();
QStringList methods;
for(int i = metaObject->methodOffset(); i < metaObject->methodCount(); ++i)
methods << QString::fromLatin1(metaObject->method(i).signature());
To copy to clipboard, switch view to plain text mode
I get all methods bot not inherited ones
What am i missing?
Is there a replacement for slotNames in qt 4.7?
Bookmarks