By convention + for minor technical reasons, Q_OBJECT should be the first line after the class declaration in the private section.