title: QComboBox edit LineEdit while PopUp is active
body: <p>I have a <code>QComboBox</code> filled with some data. I wish to edit the <code>lineEdit</code> of the <code>comboBox</code> and when I do that to make the <code>comboBox</code> display his pop up while I am editing. The problem is I lost the focus of the <code>lineEdit</code> and I can write only one letter at a time.</p>
  
  <p>This is what I am doing at a trivial level:</p>
  
  <pre><code>ui-&gt;comboBox-&gt;addItem("This");
  ui-&gt;comboBox-&gt;addItem("is");
  ui-&gt;comboBox-&gt;addItem("a");
  ui-&gt;comboBox-&gt;addItem("comboBox");
  
  ui-&gt;comboBox-&gt;setEditable(true);
  connect(ui-&gt;comboBox, SIGNAL(currentTextChanged(QString)), this, SLOT(PrintTextLineEdit(QString)));
  
  void MainWindow::PrintTextLineEdit(QString str)
  {
    ui-&gt;comboBox-&gt;showPopup();
    ui-&gt;comboBox-&gt;lineEdit()-&gt;setFocus();
  }
  </code></pre>
  
  <p>Also if I use the <code>blockSignal</code> on the <code>lineEdit</code> while I show the pop up is useless. Any suggestions?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It seems I need to provide some extra detail. I need to be able to write an entire word at a time without to lose focus when I use <code>ui-&gt;comboBox-&gt;showPopUp()</code> in the <code>currentTextChanged</code> signal.</p>
  
  <p>Or to put it simple: the cursor do not need to disappear from the <code>QLineEdit</code> after the signal is emitted and the popUp is shown.</p>