The screenshot is extremely small, but I assume you mean that the item height is taller than what you expect.
One thing you can try is to get the actually consumed bounding rect for the text drawing. The drawText() method has an option QRect pointer argument that, if present, will be set to the bounding rect the text actually needed when drawn.
painter->drawText( itemRect, flags, text, &usedRect );
QRect usedRect;
painter->drawText( itemRect, flags, text, &usedRect );
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks