Rerun qmake. You need to do that each time you add the Q_OBJECT macro to an existing file.