Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Capturing QKeyEvents from /dev/input/event1 in embedded linux device (EGLFS)

Capturing QKeyEvents from /dev/input/event1 in embedded linux device (EGLFS)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 342 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chandana H C
    wrote on last edited by Chandana H C
    #1

    Hi,

    I'm trying to get QKeyEvents on keypress/keyrelease on linux embedded device(EGLFS) which uses custom keypad.
    /dev/input/event1 is the keyevent file.

    With evtest the output is as expected.
    But in the Qt application running on EGLFS platform, the eventfilter detects the event type as QEvent::SockAct whenever key is pressed/released on custom keypad. The expected event type is QEvent::KeyPress/QEvent::KeyRelease which I'm not able to get.

    I've tried setting the below environment variables,

    QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event1;grab=1
    QT_QPA_GENERIC_PLUGINS=evdevmouse,evdevkeyboard
    QT_QPA_PLATFORM=eglfs
    QT_QPA_EGLFS_DISABLE_INPUT = 1

    Before setting these variables, I wasn't able to get any event on key press/release. But after setting these, it is detected as QEvent::SockAct.

    Please suggest what needs to be set to get QKeyEvent on key press/release. Qt Version 5.14 running on embedded linux.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved