Using mouse and keyboard with Lighthouse
-
wrote on 23 Jul 2011, 10:53 last edited by
Hi! Has anyone ever tried to use Lighthose with mouse and keyboard? I've been able to use the eglfs platform plugin but I can't make mouse and keyboard work. It seems that the LinuxInput plugin is reading events from the device, but nothing reaches my widgets. Any idea of what there could be wrong?
Thanks! -
wrote on 26 Jul 2011, 07:47 last edited by
Hi, I also encounter the same problem for using plug-in LinuxFb on an arm board.
Then I tried to compile qt-4.8.0 technical preview with qpa [new name for Lighthouse] feature in Ubuntu-PC. The plug-in I choose in Ubuntu-pc is xlib. The application can handle the mouse and keyboard event well. There are two additional class QXlibKeyboard and QXlibCursor. These two class seems to used to handle the keyboard and mouse event respectively.
Unfortunately, there is no libxcursor and glx libraries on the arm board.
Maybe we should handle the event by ourselves or use xlib.
-
wrote on 12 Aug 2011, 11:38 last edited by
After read the code for src/plugin/platform/directfb and xlib.
There are some example for how to send mouse/keyboard event to QtCore/QtGui.
In class QWindowSystemInterface, there defined several static function for sending event to QtCore. For example, QWindowSystemInterface::handleMouseEvent(...).
So, what we need to do is that reading mouse/keyboard event and call QWindowSystemInterface api to send it to QtCore.