In file included from moc_testclass.cpp:9: In file included from ./../TestApp/testclass.h:4: In file included from ../../../Qt5dev/qtbase/include/QtCore/QObject:1: In file included from ../../../Qt5dev/qtbase/include/QtCore/qobject.h:56: ../../../Qt5dev/qtbase/include/QtCore/qmetatype.h:639:5: error: implicit instantiation of undefined template 'QStaticAssertFailure' Q_STATIC_ASSERT_X(QMetaTypeId2::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system"); ^ ../../../Qt5dev/qtbase/include/QtCore/qglobal.h:652:47: note: expanded from macro 'Q_STATIC_ASSERT_X' #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition) ^ ../../../Qt5dev/qtbase/include/QtCore/qglobal.h:651:76: note: expanded from macro 'Q_STATIC_ASSERT' enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __LINE__) = sizeof(QStaticAssertFailure)} ^ ../../../Qt5dev/qtbase/include/QtCore/qmetatype.h:646:12: note: in instantiation of function template specialization 'qMetaTypeId *>' requested here return qMetaTypeId(); ^ moc_testclass.cpp:81:50: note: in instantiation of function template specialization 'qRegisterMetaType *>' requested here *reinterpret_cast(_a[0]) = qRegisterMetaType< QList* >(); break; ^ ../../../Qt5dev/qtbase/include/QtCore/qglobal.h:645:28: note: template is declared here template class QStaticAssertFailure; ^ In file included from moc_testclass.cpp:9: In file included from ./../TestApp/testclass.h:4: In file included from ../../../Qt5dev/qtbase/include/QtCore/QObject:1: In file included from ../../../Qt5dev/qtbase/include/QtCore/qobject.h:56: ../../../Qt5dev/qtbase/include/QtCore/qmetatype.h:532:82: error: no member named 'qt_metatype_id' in 'QMetaTypeId *>' static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return QMetaTypeId::qt_metatype_id(); } ~~~~~~~~~~~~~~~~^ ../../../Qt5dev/qtbase/include/QtCore/qmetatype.h:640:29: note: in instantiation of member function 'QMetaTypeId2 *>::qt_metatype_id' requested here return QMetaTypeId2::qt_metatype_id(); ^ ../../../Qt5dev/qtbase/include/QtCore/qmetatype.h:646:12: note: in instantiation of function template specialization 'qMetaTypeId *>' requested here return qMetaTypeId(); ^ moc_testclass.cpp:81:50: note: in instantiation of function template specialization 'qRegisterMetaType *>' requested here *reinterpret_cast(_a[0]) = qRegisterMetaType< QList* >(); break; ^ 2 errors generated. make: *** [moc_testclass.o] Error 1 12:59:40: The process "/usr/bin/make" exited with code 2. Error while building/deploying project TestApp (kit: Qt 5.1.0 dev clang 64bit) When executing step 'Make'