How to catch audio keys on Linux in QML applications

From Qt Wiki
Jump to navigation Jump to search

To catch audio keys events you disable the shortcuts in System Settings->Keyboard->Shortcuts->Sound and Media (Volume up, Volume down, Volume mute) The reason for this is, the Linux does not propagate those keys events futher to the application.

Tested on Linux Ubuntu 14.04 x64 (Unity and LXDE).