PDA

View Full Version : pixel lenght of QString



suneel1310
28th July 2010, 07:07
Hi,

How to the pixel length of a Qstring? for a perticular font?

Lykurg
28th July 2010, 07:52
See QFontMetrics::width.

ChrisW67
28th July 2010, 07:54
Have you actually looked at the Qt Docs and examples? Start with QFontMetrics or QPainter::boundingRect() to see what best suits.

lucasbemo
10th September 2010, 20:35
Thanks man...

Too help me.


;)