I have a class that inherits QStyledItemDelegate. I override the following methods:

Qt Code:
  1. QWidget *createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
  2. void setModelData( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const;
  3. void setEditorData ( QWidget * editor, const QModelIndex & index ) const;
To copy to clipboard, switch view to plain text mode 

Is it possible to retrieve the QTreeWidgetItem on which the user clicked in the createEditor method of the delegate?

Thanks in advance