包含目录:
E:\CPP\lib\10QHotkey\QHotkey
include:
#include <QHotkey>
库文件:
E:\CPP\lib\10QHotkey\QHotkey\release\QHotkey1.lib E:\CPP\lib\10QHotkey\x64\Release\QHotkey1X64.lib
注册热键:
QHotkey* gp_hotkey;//全局热键 gp_hotkey = new QHotkey(QKeySequence("Alt+Q"), true, this); connect(gp_hotkey, &QHotkey::activated, this, &jjsoft::btn_go);//热键绑定槽函数