I have a QTableWidget with 'Word Wrap' enabled, and also I installed an item delegation on it. when reimplementing:
Qt Code:
QStyledItemDelegate::paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index )To copy to clipboard, switch view to plain text mode
the 'option.rect' give me whole item 'rect' but I want rect of an arbitrary line of text.
How can I do that?
Bookmarks