[Interest] Accessing staticMetaObject of Q_GADGET class by name or TypeID

Shady Zayat shadyzay at gmail.com
Wed Jan 23 00:51:15 CET 2013


Is there a way to access the QMetaObject for a non QObject subclass that
has the Q_GADGET macro, in runtime, by class name or by type id? I'm
looking for something similar to
 const QMetaObject * QMetaType::metaObjectForType(int type)

What I'm trying to write here is a generic function that returns the string
value of Q_ENUMS stored in a QVariant. Any hints appreciated.

Cheers,
-- 
Shady Zayat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130122/9202e220/attachment.html>


More information about the Interest mailing list