QML, Keys.onPressed
-
Hi
Is it possible to detect volume up/down keys in QML on Symbian 3?
I've been trying to get any key press feedback in QML. But nothing happens, no key event is triggered at all.Keys.onPressed: { console.log("key has been pressed"); }
Although, on Windows 7 the same QML code works as expected.
-
Okay, I did some search and found a bug report for this "Enable key capture and remcon interfaces for Qt apps on Symbian":http://bugreports.qt.nokia.com/browse/QTBUG-4415 , but this looks like left for more than a year and doesn't look promising.
Meanwhile, I did some more search and it seems only way is to use "Symbian Remote Control API":http://wiki.forum.nokia.com/index.php/TSS000432_-_Utilising_media_keys and somehow wrap it as QDeclarativeItem. I'm happy to share the code snippet if somebody is interested but not sure where's the proper place.
-
I created a new wiki entry and put code there. "Getting Audio Volume Key Event on Symbian Devices":http://developer.qt.nokia.com/wiki/AudioVolumeKeyEventOnSymbian
-
Try this link "Getting Audio Volume Key Event on Symbian Devices":http://developer.qt.nokia.com/wiki/Audio_Volume_Key_Event_On_Symbian , the next time use the search function of the Wiki.