...or you can use QFontMetrics::boundingRect(). Get it via option.fontMetrics.