If Q_GADGET macro is used, it is not necessary to use Q_DECLARE_METATYPE.
Q_GADGET
Q_DECLARE_METATYPE