Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

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