标签:int qstring inter font height paint string turn ring
CSize fontMetricsCSize(QString source, QPainter *pDC);
CSize fontMetricsCSize(QString source, QPainter *pDC)
{
CSize sz;
QFontMetrics fontMetrics(pDC->font());
int nFontWidth = fontMetrics.width(source);
int nFontHeight = fontMetrics.height();
sz = CSize(nFontWidth, nFontHeight);
return sz;
}
标签:int qstring inter font height paint string turn ring
原文地址:https://www.cnblogs.com/ShiShouTHS/p/11365548.html