
Originally Posted by
Alex_123
I tried to make a descendant from QItemDelegate and implement the paint function in order to try and get the rect property though it doesn't even called when I show the items.
The function signature must match, including constness. Perhaps you forgot the last "const":
void paint
(QPainter* painter,
const QStyleOptionViewItem
& option,
const QModelIndex
& index
) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
To copy to clipboard, switch view to plain text mode
Bookmarks