Keyboard issues
-
Did you check whether you have the rights to access that device ?
-
Then call your application with QT_DEBUG_PLUGINS=1 set, you'll see if there's something happening with the plugins.
-
Can you show your configuration and the command used to launch your application ?
-
It's a Raspberry Pi Model B+ running a linux buildroot o.s.:
@
uname -a
Linux rpi 3.12.26 #1 PREEMPT Thu Oct 2 20:45:27 CEST 2014 armv6l GNU/Linux
@Here the command I use to launch my application:
@
./myapp
@I also tried:
@
./myapp < /dev/tty1
@Even with the QT_QPA_EVDEV_KEYBOARD_PARAMETERS variable set, when I hit any key on the keyboard it will show the char on the console, instead of being grabbed by the application. I.e. no QCoreApplication::event() is emitted.
-
What parameters did you set on QT_QPA_EVDEV_KEYBOARD_PARAMETERS ?
-
As I said in a previous post I tried the following:
@
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=‘grab=1’
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=‘/dev/input/input0;grab=1’
@Anyway the keyboard is the only input device available and also the only USB device connected.
-
Are you running your application through ssh ?