• 3879阅读
  • 0回复

请教各位大侠一个 drawPolygon 的问题。 [复制链接]

上一主题 下一主题
离线robertkun
 

只看楼主 倒序阅读 楼主  发表于: 2009-08-18
我用的是宋体,更换其它字体后,现象可消除,小弟不清楚原因,请高手指点。
代码如下:
  1.         QBrush faceBrush = m_FaceProperty.matBrush.nativeBrush();
  2.             viewPainter->setBrush(faceBrush);
  3.             viewPainter->setPen(Qt::NoPen);
  4.             
  5.             QTransform transForm;
  6.             QList<QPolygonF>  polyGonF = textPath.toFillPolygons(transForm);
  7.             foreach (QPolygonF poly, polyGonF)
  8.             {
  9.                 viewPainter->drawPolygon(poly, Qt::WindingFill);
  10.             }


多谢。
[ 此帖被robertkun在2009-08-18 17:12重新编辑 ]
                                              简单的生活使人快乐!
快速回复
限100 字节
 
上一个 下一个