title: Selecting non-alpha chars with QTextCursor
body: <p>I'm trying to add syntax completion to a QTextEdit base editor and I'd like to support non-alpha characters to trigger the QCompleter popup. I'm using QTextCursor::select to get the current word but it is always filtering out non-alpha characters. Is there an option I need to use for this ?</p>
  
  <p>Here's the code I use to get the text:</p>
  
  <pre><code>QTextCursor tc = textCursor();
  tc.select(QTextCursor::WordUnderCursor);
  QString t = tc.selectedText();
  </code></pre>
  
  <p>thanks</p>