On Friday, February 14, 2014 09:21:20 Keith Gardner wrote:
> class Foo : public QObject
> {
>     ...
> };

> Q_DECLARE_METATYPE(Foo*)

This is not needed.

> 
> const char *string = "Foo";
> const QMetaObject* metaObject =
> QMetaType::metaObjectForType(QMetaType::type(string));
> 
> I haven't tried compiling this but I believe this is how it will work based
> off of the docs for QMetaType.

QMetaType::metaObjectForType is not documented.

Thanks,

-- 
Stephen Kelly <stephen.ke...@kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to