How to catch audio keys on Linux in QML applications: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(The quick solution added)
 
(Add to HowTo)
 
Line 1: Line 1:
[[Category:HowTo]]
To catch audio keys events you disable the shortcuts in System Settings->Keyboard->Shortcuts->Sound and Media (Volume up, Volume down, Volume mute)
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.
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).
Tested on Linux Ubuntu 14.04 x64 (Unity and LXDE).

Latest revision as of 15:56, 25 November 2016

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).