title: Detecting initial/entry click on QT QPlainTextEdit widget
body: <p>I'd like to detect a click into a <code>QPlainTextEdit</code> widget. The ultimate goal is to launch a virtual keyboard widget. BTW, the <code>QPlainTextEdit</code> widget is described in a QT ui file and loaded by <code>QUiLoader</code>. I've tried installing an event handler for the <code>QPlainTextEdit</code> widget in order to catch <code>QEvent::FocusIn</code> events. Unfortunately this event is fired repeatedly, and not just once.</p>
  
  <p>Note: I'm using QT 4.8.</p>
  
  <p><strong>Update</strong>
  I've found a <a href="http://qt.developpez.com/doc/4.6/tools-inputpanel/" rel="nofollow">tutorial/example</a> that shows how to launch a software input panel for a text input widget. Unfortunately, the input panel closes immediately after opening. Basically, the event <code>QEvent::CloseSoftwareInputPanel</code> is fired soon after <code>QEvent::RequestSoftwareInputPanel</code>.</p>