#include class TestObject : public QObject { Q_OBJECT public slots: void testSlot1(); #ifndef MOC_SHOULD_SEE_THIS void testSlot2(); #endif };