Qt 升级到5.x版本后,QAbstractEventDispatcher中函数发生变动,导致libqxt库中的qxtGlobalShortcut挂掉.参考qxtGlobalShortcut写了一个全局热键类,用法与qxtGlobalShortcut一致.在 Win8.1 + Qt 5.11 能正常使用
_______________________________________________________________________
用法
_______________________________________________________________________
MyGlobalShortcut* shortcut = new MyGlobalShortcut("Ctrl+F9", w);
connect(shortcut, SIGNAL(activated()),w, SLOT(myslot()));
示例下载地址
______________________________________________________________________
http://download.csdn.net/detail/hellogdut/7120769
http://blog.csdn.net/milujun/article/details/22324415