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);
#############################
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);
#############################