class Class : public QObject{Q_OBJECTpublic: Class() : QObject( 0 ) {} void func() const { emit failed(); }signals: void failed();};