I apologize for the wrong answers. Suffice it to say I need to work on my reading comprehension (first answer) and I should look at the docs before answering (second answer).

From the QAbstractItemModel docs:
virtual QVariant data ( const QModelIndex & index, int role = Qt:: DisplayRole ) const = 0
I think this will work:
Qt Code:
  1. target = selectionModel->model()->data(editIndex.first());
To copy to clipboard, switch view to plain text mode