We are using the default realvnc (no XKEYBOARD support) on Debian 7. With Qt5.3 and Qt5.4 , the normal keys are mostly working, but we found that the special keys, lock keys, direction keys and the numeric keypad are acting weird, for example, the down arrow key acts like enter...
Here is the debug info dumped when adding this patch: https://codereview.qt-project.org/#/c/103933/
Qt: XKEYBOARD extension not present on the X server.
qt.qpa.xkeyboard: xkb context inlude path: /usr/share/X11/xkb
qt.qpa.xkeyboard: checking for xkeyboard...
qt.qpa.xkeyboard: xkeyboard extension not present on x server
qt.qpa.xkeyboard: read xkb config property
The example I used is the fontsampler.
Here is what we have in /usr/share/X11/xkb :
compat/ geometry.dir keymap/ semantics/ symbols.dir
compat.dir keycodes/ keymap.dir semantics.dir types/
geometry/ keycodes.dir rules/ symbols/ types.dir