How to catch audio keys on Linux in QML applications

From Qt Wiki
Revision as of 15:56, 25 November 2016 by EdwardWelbourne (talk | contribs) (Add to HowTo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).