How to interpret QFontMetrics results?
问题 I have a problem making sense of the values I get from QFontMetrics // 43 characters 0123456789012345678901234567890123456789012 static const QString s("The quick brown fox jumps over the lazy dog"); // Hint: basically returns w->fontMetrics(); with w being my main application window const QFontMetrics fm = CGuiUtility::currentFontMetrics(); const int w = fm.width(s); const int h = fm.height(); return QSize(w, h); With the following screen resolutions I get: ) 1920/1080: 256/16 ) 3840/2160: