title: How to force QCompleter to check second word in QLineEdit
body: <p>I have a feature to implement a textbox with auto completion.
  I have found a code which uses QLineEdit and QCompleter.</p>
  
  <p>Hence I have my string values, "one" , "two" , "three" ect.</p>
  
  <p>Once I type "on" the completer suggests me every word in the list with prefix "on".
  But after I select "one" from the list and try to type the second word, completer does not work. </p>
  
  <p>Is there a functionality in QCompleter or overall in Qt, which provides such functionality. I haven found it in documentation.</p>
  
  <p>See my found code:</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include&lt;QStringList&gt;
  #include&lt;QLineEdit&gt;
  #include&lt;QCompleter&gt;
  #include&lt;QHBoxLayout&gt;
  #include&lt;QWidget&gt;
  #include&lt;QLabel&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QWidget *win=new QWidget();
      QHBoxLayout *lay=new QHBoxLayout();
      QStringList wordList;
      wordList &lt;&lt; "alpha" &lt;&lt; "omega" &lt;&lt; "omicron" &lt;&lt; "zeta"&lt;&lt;"america"&lt;&lt;"orion"&lt;&lt;"amit"&lt;&lt;"Odssey";
      QLabel *lbl=new QLabel("Select");
      QLineEdit *lineEdit = new QLineEdit();
      lbl-&gt;setBuddy(lineEdit);
      QCompleter *completer = new QCompleter(wordList);
      completer-&gt;setCaseSensitivity(Qt::CaseInsensitive); //Make caseInsensitive selectio
      lineEdit-&gt;setCompleter(completer);
      lay-&gt;addWidget(lbl);
      lay-&gt;addWidget(lineEdit);
      win-&gt;setLayout(lay);
      win-&gt;showMaximized();
      return a.exec();
  }
  </code></pre>