适用于 qt5 封装的全局快捷键, 调用方法m_pF10Shortcut = new MyGlobalShortCut("F10", this); QObject::connect(m_pF10Shortcut, SIGNAL(activated()), this,SLOT(slot_onStop()));