[Qt-qml] Non Standard Input Device With KeyNavigation Element
Girish Ramakrishnan
girish at forwardbias.in
Wed Jul 13 21:11:54 CEST 2011
Hi Michael,
There is no QML built-in mechanism for this afaik. We had wanted
something similar when we added remote control support for our
application. We ended up using an event filter for the
QDeclarativeView which translates all raw key events to mapped events.
So, for example, it would see the raw key event '8', consume the
event, create a new event Qt::Key_Up and send it to the view.
Not pretty :-)
Girish
On Wed, Jul 13, 2011 at 10:30 PM, Michael Dippold <mike at dippold.com> wrote:
> The system my qml application will be running on does not have standard key
> navigation (up arrow, down arrow, left arrow , right arrow) it may be (8, 2,
> 4, 6).
>
> With that, I cannot currently use the QML KeyNavigation element. Is there
> any way on the application level I can map 8->UP, 2->DOWN, 4->LEFT, 6->RIGHT
> so the KeyNavigation element can be used?
> Thanks,
> Mike
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
More information about the Qt-qml
mailing list