#include <QtCore/qmetatype.h> #ifndef QMETATYPE_H template < typename T > struct QMetaTypeId2{ /* Some contents are skipped to improve readability */ public: static inline int qt_metatype_id(); /* ... */ }; #endif // QMETATYPE_H