After some investigation it does appear that whenever the volume keys are pressed the application loses focus (i.e. Qt.application.state is not Qt.ApplicationActive any more).
This is not a Qt-specific behavior, as I tested with a simple gtk+3 application and pressing the volume keys causes it to briefly lose and regain focus too.
After some investigation it does appear that whenever the volume keys are pressed the application loses focus (i.e. Qt.application. state is not Qt.ApplicationA ctive any more).
This is not a Qt-specific behavior, as I tested with a simple gtk+3 application and pressing the volume keys causes it to briefly lose and regain focus too.