Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.



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

    -plugin evdevkeyboard:/dev/input/event0



  • 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 .



  • 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?


Log in to reply