#ifndef CustomType_h__ #define CustomType_h__ #include #include struct QCustomType { unsigned int ArraySize = 0; QVector Array; }; static QDebug operator<<(QDebug debug, const QCustomType& it) { return debug << it.Array; } Q_DECLARE_METATYPE(QCustomType) #endif // CustomType_h__