Qt Code:
  1. #include <QObject>
  2. #include <QComboBox>
  3.  
  4. class testQComboBox : public QComboBox {
  5. Q_OBJECT
  6. public:
  7. testQComboBox(QWidget * parent = 0);
  8. }
To copy to clipboard, switch view to plain text mode 


here is my header

i am using qmake et try to subclass QComboBox to add signals.
I am getting a vtable link error because of Q_OBJECT...
i read in the doc that qmake should automatically moc the file if Q_OBJECT is in the header but it does not seem to work in my project... what am i doing wrong?

thanks for your help