pen.setCapStyle(Qt::RoundCap);
pen.setJoinStyle(Qt::RoundJoin);
pen.setColor(qRgb(201,199,182));
pen.setWidth(14);
painter.setPen(pen);
painter.drawPolyline(line1,4);
painter.drawPolyline(line2,4);
pen.setColor(qRgb(237,234,200));
pen.setWidth(10);
painter.setPen(pen);
painter.drawPolyline(line1,4);
painter.drawPolyline(line2,4);
QPoint line1[] = {QPoint(20,200),QPoint(400,200),QPoint(400,300),QPoint(20,300)};
QPoint line2[] = {QPoint(100,100),QPoint(100,400),QPoint(200,400),QPoint(350,100)};
QPen pen;
pen.setCapStyle(Qt::RoundCap);
pen.setJoinStyle(Qt::RoundJoin);
pen.setColor(qRgb(201,199,182));
pen.setWidth(14);
painter.setPen(pen);
painter.drawPolyline(line1,4);
painter.drawPolyline(line2,4);
pen.setColor(qRgb(237,234,200));
pen.setWidth(10);
painter.setPen(pen);
painter.drawPolyline(line1,4);
painter.drawPolyline(line2,4);
To copy to clipboard, switch view to plain text mode
Bookmarks