title: QCompleter Custom Completion Rules
body: <p>I'm using Qt4.6 and I have a QComboBox with a QCompleter in it.</p>
  
  <p>The usual functionality is to provide completion hints (these can be in a dropdown rather than inline - which is my usage) based on a prefix. For example, given</p>
  
  <pre><code>chicken soup
  chilli peppers
  grilled chicken
  </code></pre>
  
  <p>entering <code>ch</code> would match <code>chicken soup</code> and <code>chilli peppers</code> but not <code>grilled chicken</code>.</p>
  
  <p>What I want is to be able to enter <code>ch</code> and match all of them or, more specifically, <code>chicken</code> and match <code>chicken soup</code> and <code>grilled chicken</code>.<br />
  I also want to be able to assign a tag like <code>chs</code> to <code>chicken soup</code> to produce another match which is not just on the text's content. I can handle the algorithm but,</p>
  
  <p>Which of QCompleter's functions do I need to override?<br />
  I'm not really sure where I should be looking...</p>