SUMMARY Following code produces an incorrect emit warning: Emitting inside constructor probably has no effect [-Wclazy-incorrect-emit] When i change the connect to a pointer to method, the error doesn't occour. *** class MyClass : public QObject { Q_OBJECT public: void func(); signals: void mySignal(); }; void MyClass::func() { QNetworkReply* logout_reply = nullptr; QObject::connect(logout_reply, &QNetworkReply::finished, [] { }); emit mySignal(); } **** By the way IncorrectEmit::hasEmitKeyboard looks like a mis-spelling.