06-08-2012 03:11 PM
Does anyone know how to capture the Play/Pause Button with Qt? I tried looking for it in a keyPressEvent like I do for the swipe-down menu but nothing gets triggered there.
Solved! Go to Solution.
06-11-2012 09:04 AM
Anybody have an idea? I thought I would bump this after the weekend. Something that may be of interest (and possibly part of the problem) is that when I use Qt Mobility I get an error message in my log:
Unable to request multimedia events
Anybody now why that would happen? This error is coming the from the standard mmrender_request_events function. Is there a permission/action I need to have? I have this right now:
Interestingly I am prompted to accept the file permission but nothing is asked of the audio permissions.
06-12-2012 11:39 AM
It’s being investigated internally. Please log a Feature Request in JIRA and then post the JIRA Item URL back to this thread so we can help you monitor the status of your request.
09-20-2012 11:41 AM
Support for hardware buttons is now available in Qt 4.8 and Qt 5. See
The hardware buttons are mapped to Qt Key press events:
bid_minus -> Qt::Key_VolumeDown
bid_playpause -> Qt::Key_Play
bid_plus -> Qt::Key_VolumeUp
bid_power -> Qt::Key_PowerDown
Just override Qwidget::keyPressEvent() or QObject::event() as usual or use an eventFilter to respond to these events.