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).
Is there a better way to activate a program by a global hotkey?
-
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... -
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.
-
@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