void MainController::EstablishConnections(){ QAction* pAction = lang_action.data(); bool c1 = connect(pAction, &QAction::triggered, []() { int k = 0; ++k; });}
int k = 0;++k;
QMetaObject::Connection QObject::connect(const QObject * sender, PointerToMemberFunction signal, const QObject * context, Functor functor, Qt::ConnectionType type) [static]
#if defined(_MSC_VER) && (_MSC_VER <= 1600)# pragma warning(disable:4505)#endif
C++ (Qt)#include <iostream> using namespace std; int main(){ auto l = [] () { cout << "hello"; }; l(); return 0;}