Capture specific keyboard events in desktop environment
-
Hi!
I need to capture keyboard events globally (desktop environment). Must write a audio mixer application which completely replace Pulseaudio in KDE, because my corresponding professional audio interface will not correct detected by Pulseaudio. Want use Qt for the user interface for my mixer application. But need only to capture the VolumeUp, VolumeDown and VolumeMute key events.
Exists there a Qt C++ class to capture these specific key events from the desktop environment without using Xlib direct?
I know there exists the grabkeyboard function in QWidget. But this function grabs all events. I only need the above events...
-
@krjdev My solution would be to use grabKeyboard() on the main window and act only on relevant keys, passing the rest further on.