title: Interact with editor widgets' data in QTableView
body: <p>I'm using an editable QTableView + QStandardItemModel.</p>
  
  <p>While editing a cell in a table view, I'd like to do something <strong>according to the new input data</strong> in this specific cell when committing the new data into the table view.</p>
  
  <p>To do this, I need the new input data and the current model index (or column &amp; row number).
  I tried some slots such as </p>
  
  <blockquote>
    <p>virtual void closeEditor (QWidget * editor,
    QAbstractItemDelegate::EndEditHint hint)</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>virtual void commitData ( QWidget * editor ).</p>
  </blockquote>
  
  <p>commitData seems to be what I need, however, the parameter is only the editor and I cannot figure out how to obtain the text in this editor widget.
  I looked QTextEdit  but it's not a inherited class of QWidget.</p>
  
  <p>I wonder if there's any way to obtain the data (text) and axis (column, row) of an editor widget?</p>