[PySide] QStyledItemDelegate sizeHint and paint QStyleOptionViewItem rect size
-
Hello!
I'm trying to create my own ItemDelegate for a QTableView. I've re-implemented sizeHint() for using resizeRowsToContents() on the table. But I've just realized that I'm getting bigger widths on the QStyleOption.rect on sizeHint() than in paint(), by 1px, so the height calculated for the text on it is often too small, smaller than the one I need.
Am I missing something?
Thanks