C++/Qt Global Hotkeys

心已入冬 提交于 2019-11-27 16:23:19

To summarize:

  1. The Qt Event System may be an option (with some help on system/desktop manager level)
  2. Qxt Library (not longer maintained)
  3. Or this project UGlobalHotkey

. 2. seems the best option so far. Though it is not longer maintained it currently works with Qt5.

http://amin-ahmadi.com/2015/11/14/how-to-use-system-wide-hotkeys-in-your-qt-application/ shows how to use the Windows API's RegisterHotKey in Qt.

You'll need the key code(s) for your hotkey(s).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!