i guess for that the best bet u have is boundingRect(QString)...it will give u the height as it is..and it shouldnt affect your program much..its better than to curse Qt whole day..ciao
i guess for that the best bet u have is boundingRect(QString)...it will give u the height as it is..and it shouldnt affect your program much..its better than to curse Qt whole day..ciao
Height is basically for the whole string, so its logical for it to be same.
However, font metrics dont consist of just height, there are also ascent and descent.(QFontMetrics::ascent,QFontMetrics::descent).
Have a look at them too.
Also there was som example related to fonts on Qt Labs.. Font Anatomy. I think on SVN, under graphics directory. Have a look at it too, it might help![]()
Bookmarks