Do you have Q_OBJECT macro in your class?