#include <QtCore/qvariant.h> #ifndef QVARIANT_H #ifndef QT_MOC template < > struct QMetaTypeId2 < class QMap < class QString, class QVariant > >{ /* Some contents are skipped to improve readability */ public: enum /*anonymous*/{ /* ... */ MetaType = 8, /* ... */ }; /* ... */ }; #endif #endif // QVARIANT_H