Key auto repeat with Poky / Qt 5.4



  • I'm trying to figure out how to set up key auto repeat feature. We moved over from WinCE and we have code in several bits that rely on this behavior.

    The only information I can find on it is here but I'm not sure of how to use it properly.
    http://doc.qt.io/qt-5/embedded-linux.html

    I've defined QT_QPA_EVDEV_KEYBOARD_PARAMETERS based on the example shows grab=1
    I've tried a few different

    'repeat-rate=500 repeat-delay=1000' <= I'm not sure how to use multiple settings
    'repeat-rate=500'
    repeat-rate=500
    "repeat-rate=500"

    When we run our app we use -platofrm eglfs. Our main app uses QWaylandQuickCompositor. This is a little confusing to me since we aren't using the wayland platform. So I'm assuming the evdev keys aren't handled by wayland and we are only using it to draw but I could be way off.

    If I can't get this to work is there a way to simulate it. I know I can get on key pressed/released events, So I might be able to write some simple code that can create the events manually.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.