Make the code compile with older Qt
Sadly, we can't yet use the QMetaObject::invokeMethod that takes a functor...