is it possible and how?
My wish is is to use it as Q_PROPERTY. For it I would need QVariant support and metatype is needed for it.
regards, Harri
is it possible and how?
My wish is is to use it as Q_PROPERTY. For it I would need QVariant support and metatype is needed for it.
regards, Harri
You need to use the macro Q_DECLARE_METATYPE() and call qRegisterMetaType().
You are probably running in to troubles because your types name contains a comma and that doesn't work well with macros. You can fix that with something like:Qt Code:
typedef QMap<int,QVariant> MyType;To copy to clipboard, switch view to plain text mode
Bookmarks