Qt5 keyboard input does not work without xkbcommon-evdev enabled



  • We build QT with yocto build system to run on TI Sitara devices such as AM57xx.
    There were never Keyboard issue until QT5.11.3 when we dropped xkbcommon-evdev at yocto. The keyboard inputs were no longer recognized by any QT application including qtwebkit browser. This problem was recognized and then fixed by re-enabling xkbcommon-evdev.

    Features used by QPA backends:
    evdev .................................. yes
    libinput ............................... yes
    INTEGRITY HID .......................... no
    mtdev .................................. no
    tslib .................................. no
    xkbcommon-evdev ........................ yes

    Unfortunately the same trick does not work for QT5.12.3 because xkbcommon-evdev is no longer supported by QT QPA.

    Features used by QPA backends:
    evdev .................................. yes
    libinput ............................... yes
    INTEGRITY HID .......................... no
    mtdev .................................. no
    tslib .................................. no
    xkbcommon .............................. no
    X11 specific:
    XLib ................................. no
    XCB Xlib ............................. no
    EGL on X11 ........................... no

    Any inputs to debug and resolve this issue is highly appreciated.

    Best regards,

    Eric


  • Lifetime Qt Champion

    Hi,

    Just an educated guess but until recently, the xkbcommon library was provided by Qt but since all officially supported distribution provide that library, the related embedded version has been dropped.

    Therefore, you would need to enable that library in your yocto build.



  • Thanks for the information! Is xkbcommon still required without X11. Our build does not support X11, just Wayland and nullWindow (EGLFS). It used to work through xkbcommon-evdev only.

    Best regards,

    Eric


  • Lifetime Qt Champion

    Likely because the library was included with Qt.

    AFAIR, it can be used without X11.



  • Yes, it works well with xkbcommon enabled.
    Thanks a lot.

    Best regards,

    Eric


 

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