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. Qt5.1.1 no input from keypad that is a standard linux event device
QtWS25 Last Chance

Qt5.1.1 no input from keypad that is a standard linux event device

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 2.1k 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.
  • S Offline
    S Offline
    SavageTwinky
    wrote on last edited by
    #1

    I imagine this is a really silly issue, and I missed a plugin i need. I have a keypad with 5 keys at /dev/input/event0 and qt5 doesn't recognise any of those key events currently.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      david131
      wrote on last edited by
      #2

      Have you tried specifying the keyboard plugin when running your application?

      -plugin evdevkeyboard:/dev/input/event0

      1 Reply Last reply
      1
      • P Offline
        P Offline
        pluswave
        wrote on last edited by
        #3

        These is a line to test which key is within the event device ( default 'Q'), you should hack it to make sure one of your key is in the "test list" (after your change).

        qtbase/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp:

        @if (testBit(KEY_Q, bitsKey)) @

        or in your case qdevicediscovery_udev.cpp .

        1 Reply Last reply
        0
        • A Offline
          A Offline
          agocs
          wrote on last edited by
          #4

          Yes, if the discovery fails, run with -plugin evdevkeyboard:/dev/input/event0 (or QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event0 if using the eglfs platform)

          Is the device sending normal key events? Or is it sending something special which evdevkeyboard does not recognize?

          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