In the paint implementation :
Qt Code:
  1. void BoxDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
To copy to clipboard, switch view to plain text mode 
using qdebug()<<option.state; i am able to "see" a QStyle::State_MouseOver State, but in the

Qt Code:
  1. bool BoxDelegate::editorEvent ( QEvent * event, QAbstractItemModel * model, const QStyleOptionViewItem & option, const QModelIndex & index )
To copy to clipboard, switch view to plain text mode 
implementation, i dont.. why is this?