我用的是宋体,更换其它字体后,现象可消除,小弟不清楚原因,请高手指点。
代码如下:
- QBrush faceBrush = m_FaceProperty.matBrush.nativeBrush();
- viewPainter->setBrush(faceBrush);
- viewPainter->setPen(Qt::NoPen);
-
- QTransform transForm;
- QList<QPolygonF> polyGonF = textPath.toFillPolygons(transForm);
- foreach (QPolygonF poly, polyGonF)
- {
- viewPainter->drawPolygon(poly, Qt::WindingFill);
- }
多谢。
[ 此帖被robertkun在2009-08-18 17:12重新编辑 ]