Did you remember to add the Q_OBJECT macro to the class definition?
Did you split the class into two files (header and implementation)?