painter.
setRenderHint(QPainter::SmoothPixmapTransform,
true);
painter.fillRect(10 , 10, 300, 200, Qt::black);
painter.
setPen(QPen(Qt
::green,
1));
drawPath.moveTo(20,100);
drawPath.lineTo(119,100);
drawPath.moveTo(20,100);
drawPath.lineTo(20,11);
drawPath.moveTo(25,98);
drawPath.lineTo(27,80);
painter.drawPath(drawPath);
QPainter painter(this);
painter.setRenderHint(QPainter::SmoothPixmapTransform,true);
painter.fillRect(10 , 10, 300, 200, Qt::black);
painter.setPen(QPen(Qt::green, 1));
drawPath.moveTo(20,100);
drawPath.lineTo(119,100);
drawPath.moveTo(20,100);
drawPath.lineTo(20,11);
drawPath.moveTo(25,98);
drawPath.lineTo(27,80);
painter.drawPath(drawPath);
To copy to clipboard, switch view to plain text mode
Bookmarks