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.

After setting clipping to TRUE nothing was painted
Did you set a rectangle to use for clipping? If not, then you probably "clipped out" the whole painter.