Skip to content

How to enable USB mouse & keyboard in Qt applications

Alexey Brodkin edited this page Jun 27, 2017 · 2 revisions

First enable CONFIG_INPUT_EVDEV=y in Linux kernel configuration so /dev/input/eventX devices are created.

Then on target do:

Qt4

export QWS_MOUSE_PROTO=USB:/dev/input/event0
export QWS_KEYBOARD=usb:/dev/input/event0

Qt5

./myapp -platform linuxfb -plugin evdevkeyboard -plugin evdevmouse -plugin evdevtouch
Clone this wiki locally