Qt Code:
{ point=f->pos(); y=1; update(); } { linepen.setCapStyle(Qt::RoundCap); linepen.setWidth(30); painter.setPen(linepen); if(y==1) painter.drawPoint(point); }To copy to clipboard, switch view to plain text mode
i have used the code. but draws only single point. when i click to draw a second point the first point will disappear. at a time only one point will appear..
Bookmarks