Quote Originally Posted by Alex_123 View Post
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":
Qt Code:
  1. void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
To copy to clipboard, switch view to plain text mode