Qt can use lambda function in signal-slot connection by using functor parameter as shown here. But how to declare functor parameter in Qt connect? For example,
QAction* CreateAction(QString text, QObject* parent, Functor functor)
{
QAction* action = new QAction(icon, text, parent);
QObject::connect(action, &QAction::triggered, functor);
return action;
}
Question is how to include files to let the compiler know the "Functor" type.