I am using QT 4 to design GUI of my software.

I have a Controller class derived from QObject (because I want to use signals-slots mechanism). But when I build the project, the moc_Controller.cpp redefined some of member function in Controller.cpp and cause the compile problem. I decided to remove moc_Controller.cpp in Makefile. Then it causes link error called "Undefined reference to 'vtable for Controller".

Is that because there is some pure virtual function in QObject (I did not find it)?

Any help is appreciated, thanks.