Is it possible to connect a signal to static slot without receiver instance?
Like this: connect(&object, SIGNAL(some()), STATIC_SLOT(staticFooMember()));>
connect(&object, SIGNAL(some()), STATIC_SLOT(staticFooMember()));>
It is. (With Qt5)
#include #include void foo(){ qDebug() << "focusChanged"; } int main(int argc, char *argv[]) { QApplication app(argc, argv); QObject::connect(&app, &QApplication::focusChanged, foo); return app.exec(); }