Qt绘制虚线

Qt绘制虚线

 

QPainter painterObj;
QPen tmp;
QVector<qreal>dashes;
qreal space = 4;
dashes << 3 << space << 3 << space << 3 << space << 3 << space << 3 << space;
tmp.setDashPattern(dashes);
painterObj.setPen(tmp);   

 

 

#############################

posted @ 2021-05-07 17:11  西北逍遥  阅读(3101)  评论(0编辑  收藏  举报