title: Qt how can I select the word under the mouse in a QTableView
body: <p>I have a <code>QTableView</code> and i want to highlight the actual word under the current mouse pointer
  so how can I find this word?  </p>
  
  <pre><code>void LogItemDelegate::paint(QPainter *painter,
      const QStyleOptionViewItem &amp;option,
      const QModelIndex &amp;index) const
  {
      QString text = index.model()-&gt;data(index, Qt::DisplayRole).toString();
      // so how can i find the word under the mousepointer
  }
  </code></pre>