Reputation: 5760
I'm programming with Qt5.9. When in a NON static method I can get the class name using:
metaObject->className();
Is it possible to get the class name when in a static method?
Upvotes: 0
Views: 536
Reputation: 3999
QObject::staticMetaObject should do the trick.
QObject::staticMetaObject
Upvotes: 2