How can I let my Qt5.9.2 to get the matrix keyboard event
-
I have transplant the QT5.9.2 to my embedded board, everything is working ok, just can't get keypress event. I have checked the driver is working in good condition. I wondering it should be map the matrix keyboard,otherwise the QT can't get the keyevent
-
Hi and welcome to devnet,
What do you mean by transplant ?
Did you use another Qt version that had that working ?
-
Hi and welcome to devnet,
What do you mean by transplant ?
Did you use another Qt version that had that working ?
@SGaist
I didn't try another version, I mean I have crosscompile the QT5.9.2 everywhere to arm, and copy the library to the arm board, after that export the env :
QTDIR='/appfs/apps/share/Qt5'
QT_QPA_EVDEV_KEYBOARD_PARAMETERS='/dev/input/event0'
QT_QPA_EVDEV_MOUSE_PARAMETERS='/dev/input/event2'
QT_QPA_FONTDIR='/appfs/apps/share/Qt5/fonts'
QT_QPA_GENERIC_PLUGINS='tslib:'
QT_QPA_PLATFORM='linuxfb:fb=/dev/fb0'
QT_QPA_PLATFORM_PLUGIN_PATH='/usr/lib/plugin'The example can be runing , just can't get the keypress event, when I cat the /dev/input/event0 file ,it will have data when I pressing the key
-
How are you starting the application on the target ?
As which user ? -
@SGaist ownner is root , BTW, I check the source code, and add some debug infomation in the qbskeyboard.cpp and make it , and then copy the libqevdevkeyboardplugin.so to the plugins path, it didn't invoke libqevdevkeyboardplugin.so library.
thereafter it's my plugin path
root@buildroot /usr/lib/plugin/generic# ls -lh
total 268
-rw-r--r-- 1 root root 62.0K Jul 14 01:13 libqevdevkeyboardplugin.so
-rwxr-xr-x 1 root root 32.0K Jun 17 03:41 libqevdevmouseplugin.so
-rwxr-xr-x 1 root root 32.1K Jun 17 03:41 libqevdevtabletplugin.so
-rwxr-xr-x 1 root root 67.0K Jun 17 03:41 libqevdevtouchplugin.so
-rwxr-xr-x 1 root root 61.3K Jun 17 03:41 libqtuiotouchplugin.so
root@buildroot /usr/lib/plugin/generic# pwd
/usr/lib/plugin/genericdid I missing export some env?
-
Glad you found out and thanks for sharing !