C++ (Qt)QShortcut *shortcut = new QShortcut(Modules::ShortCuts::Add,parent); connect(shortcut, SIGNAL(activated() ), this, SLOT(AddModule()) );