Hello,
I had the same kind of problem with my CustomModel and CustomDelegate. Problem was that I did not implemented the methods in the model to make it editable:
// For making the items editable
Qt
::ItemFlags flags
( const QModelIndex & index
) const;
// For making the items editable
Qt::ItemFlags flags( const QModelIndex & index ) const;
bool setData (const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
To copy to clipboard, switch view to plain text mode
See QT documentation -> Model Subclassing Reference ->Editable items
Hope this helps.
regards,
Marcel
Bookmarks