Very useful when trying to determine the width or height of a string in case of control position.
QFontMetrics fm( someFont);
int w = fm.width( "String");
int h = fm.height();
Sunday, May 3, 2009
find out the size in pixels (width, height) of a QString
Subscribe to:
Post Comments (Atom)
0 תגובות:
Post a Comment