Hi Nick,
In setData which is where I presume you check your item, use the following to get the text:
QString text
= index.
internalPointer()->data
( index, Qt
::DisplayRole ).
toString();
QString text = index.internalPointer()->data( index, Qt::DisplayRole ).toString();
To copy to clipboard, switch view to plain text mode
Once this done you could emit a custom signal with the text of interest. Also, if you have written setData remember to
emit dataChanged( index, index );
emit dataChanged( index, index );
To copy to clipboard, switch view to plain text mode
Caveat: I haven't tested this code but I think it should work...
Bookmarks