Global hotkey in Qt5?
-
wrote on 24 Sept 2015, 06:34 last edited by
Hi all,
isn't it still possible to set a system wide hook to allow global hotkeys?
I am converting the good old launchy program to qt5. But I am failing to install the keyboard event filter on any system (win,lin,mac).Now I tried to use the QXt lib, but I get "qpa/qplatformnativeinterface.h not found" (qpa is set, though).
Is there a better way to activate a program by a global hotkey?
-
wrote on 2 Jul 2016, 17:22 last edited by
Did you get it working?
I'm looking for the same solution. -
wrote on 9 Jul 2016, 23:55 last edited by Folco 7 Sept 2016, 23:57
Hi,
Perhaps you could use that ? http://amin-ahmadi.com/2015/11/14/how-to-use-system-wide-hotkeys-in-your-qt-application/
Sadly, it's something dropped with the end of QXt, and it would be really nice to add a handy way to do that in Qt... -
wrote on 4 Jan 2021, 17:29 last edited by
Hi! You can track the keyboard input, when the app isn't in focus using built-in Windows libraries. Unfortunately, it's not so easily possible on the Unix based systems. If you want to know more, check out this article.
-
Hi all,
isn't it still possible to set a system wide hook to allow global hotkeys?
I am converting the good old launchy program to qt5. But I am failing to install the keyboard event filter on any system (win,lin,mac).Now I tried to use the QXt lib, but I get "qpa/qplatformnativeinterface.h not found" (qpa is set, though).
Is there a better way to activate a program by a global hotkey?
wrote on 10 Jan 2021, 21:34 last edited by@slesa said in Global hotkey in Qt5?:
Hi all,
isn't it still possible to set a system wide hook to allow global hotkeys?
I am converting the good old launchy program to qt5. But I am failing to install the keyboard event filter on any system (win,lin,mac).Now I tried to use the QXt lib, but I get "qpa/qplatformnativeinterface.h not found" (qpa is set, though).
Missing private gui headers (dev/devel package).
libQt5Gui-private-headers-devel