FYI, this would have been enough:
Qt Code:
void LineEditDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { QStyledItemDelegate::paint(painter, noSelectionOption, index); }To copy to clipboard, switch view to plain text mode





Reply With Quote

Bookmarks