You didn't reimplement all abstract methods or you didn't declare them correctly.
For instance, indexAt should be const:
Qt Code:
  1. QModelIndex indexAt ( const QPoint & point ) const;
To copy to clipboard, switch view to plain text mode 

Also, visualRect is also const.
So take another look at the QAbstractItemView interface and define all functions properly.

Regards