Add the Q_OBJECT macro to your class definition.

Uwe