[Interest] how can I call qRegisterMetaType?
Alexey Rusakov
ktirf at users.sf.net
Tue May 17 06:47:55 CEST 2016
On 17 May 2016 at 08:47, Hamish Moffatt <hamish at risingsoftware.com> wrote:
>
> And do I need to call Q_DECLARE_METATYPE(QList<MyQuestion::QuestionType>) or
> not? It doesn't seem to be necessary in my test cases
I don't think so. The documentation for Q_DECLARE_METATYPE says that
if Type is registered then QList<Type> is automatically recognized by
the metatype system as well. And as far as I understand the
documentation, this applies to types declared as Q_ENUM as well.
--
Alexey Rusakov
More information about the Interest
mailing list