title: Keyboard input in Qt
body: <p>I am working on a Qt application running on embedded Linux. I am pretty new to this Qt business since I have just started it a month back, so understand that I'm not that <em>object-oriented</em> ... :P</p>
  
  <p>I have the Qt applications running on my target running Linux. The Qt documentation  <a href="http://doc.qt.io/archives/qt-4.7/qt-embedded-pointer.html" rel="nofollow">http://doc.qt.io/archives/qt-4.7/qt-embedded-pointer.html</a> says that we have to enable touchscreen, USB keyboard, keypad, etc. by exporting certain variables. Namely,</p>
  
  <pre><code>export QWS_MOUSE_PROTO=tslib:/dev/input/event1
  export QWS_KEYBOARD="linuxinput:/dev/input/event0 usb:/dev/input/event2"
  </code></pre>
  
  <p>well, as you can guess, first line sets the mouse device in QT as touchscreen. "tslib" is the touchscreen library, and the "event1" is the node representing the touchscreen. Similarly, second line is for on-board keypad (event0), and USB keyboard (event2).</p>
  
  <p>Now, the touchscreen work very well. But the problem is with either keyboard. If I do not export the second variable, namely <strong>QWS_KEYBOARD</strong> , then the application runs fine. But if I do export the second variable, the application goes into stopped state (SIGSTOP) as soon as it is launched. This is evident from ps output. I can not make it work with SIGCONT. </p>
  
  <p>I am going to try and reconfigure Qt from source. Any thoughts are welcome.</p>