Highlighting doesn't work because you ignore the style options used for that. Are you inheriting QAbstractItemDelegate or QItemDelegate?
As for the size hint -- try setting some (big) constant value and see if that helps.
Did you set a rectangle to use for clipping? If not, then you probably "clipped out" the whole painter.After setting clipping to TRUE nothing was painted
Bookmarks