Use Q_DECLARE_METATYPE to ensure template metatypes are declared on all platforms.