[Qt-interest] Retrieving QMetaObject from a Qt Meta Type ID
Gustavo de Sá Carvalho Honorato
gustavohonorato at gmail.com
Mon Jan 24 18:04:56 CET 2011
Hi,
I have a method that returns QVariant with any type. I have some
pointer types pointing to an object derived from QObject, which are
registered using Q_DECLARE_METATYPE. When this method returns these
pointers to QObject derived objects, I need to list all properties,
slots and others thinks related to its meta object. The problem is
that I didn't find any way disconver if this QVariant is holding a
pointer to a QObject derived type to get the QMetaObject and finally
list the properties. The purpouse of this is to expose QObject to a
scripting system, like QScriptEngine does.
Any ideas?
Thanks in advance,
Gustavo
More information about the Qt-interest-old
mailing list