Unlike Qt5, the Qt4 signals implementation doesn’t allow a signal to be directly connected to a c++ lambda expression. Work around this by defining a Callback QObject with a virtual method that can forward calls to a closure.
The Qt4 error was reported by @pstratem in #10039 (comment)