PDA

View Full Version : String length to pixel transform...how???



Sasha
22nd August 2008, 09:04
Hello friends,

Very new for this forum:-)

I got stuck with one problem, hope there are kind people to help me out here.

Suppose, I have a string with length of 10.
How can I know how many pixels is that length? What function in Qt shall I look for to solve my problem???

I appreciate your help. Thank you in advance.
Sasha

wysota
22nd August 2008, 09:12
QFontMetrics::width()