zack
14th July 2010, 13:06
Hello!
How can I get the height of a QString in pixels?
Using QFontMetric doesn't seam to work.
I print an "x" and I get via QFontMetric ::size a height of 14, but where the character is only 6 pixels height.
why is there a 'height()' function in QFontMetric without QString argument, every character has a different height.
Any suggestions?
How can I get the height of a QString in pixels?
Using QFontMetric doesn't seam to work.
I print an "x" and I get via QFontMetric ::size a height of 14, but where the character is only 6 pixels height.
why is there a 'height()' function in QFontMetric without QString argument, every character has a different height.
Any suggestions?