Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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 ?
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 :
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
-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
did I missing export some env?
OK， I have solved the problem, beceause my keyboard drive reportEV_MSC intead EV_KEY event to the input system, this is the reason why I didn't get the keypressevent. Anyway Thanks a lot!
Glad you found out and thanks for sharing !