I inherited a class from QObject :
class Parent: public QObject { Q_OBJECT QObject* cl; public: Parent(QObject *parent=0):QObject(parent) {
If your moc files are generated in the visual studio project try to include them into project if they are not included into project then rebuild.