qt application on arm board
hi everyone,
I am trying to run a simple qt app on arm embedded board having linux2.6 as os.
The matrix keypad connected to board is 4X4(16 switches). In my qt programme i have just added a simple "line edit" in ui form and what i want is that, whichever switch i press on the keypad should be displayed in line edit. Well that is not happening. So, can any one please help me to do this thing. I would be really greatfull if any one could provide me a solution for this.
with regards,:confused:
Re: qt application on arm board
Quote:
Well that is not happening.
With out code, or more details on HOW you implemented things, its hard to tell.
Does you line edit have keyboard focus?
Re: qt application on arm board
Quote:
Originally Posted by
sattu
The matrix keypad connected to board is 4X4(16 switches).
You need to map the matrix keypad keys to Qt keys. I am assuming that your driver uses the Linux 'input' facilities. It should use keys defined in 'linux/input.h'. Is the keymap in the 4x4 Linux driver corresponding to something printable? If it maps to functions keys, you won't see anything even if your widget has focus.
Also, follow the instructions in,
http://doc.qt.nokia.com/4.7/qt-embedded-charinput.html
If you don't specify a driver, then Qt will try to read some device on a serial port (using default configurations). You probably want 'QWS_KEYBOARD="LinuxInput:/dev/input/event1"' or something like that. You might have to recompile Qt to enable this driver.