I want paint some circle by press the mouse button.
Code:
{ if (event->button() == Qt::LeftButton) { show = true; } } { if (show) paintCircle1(painter); }
It works...
...but my plan/problem is: if i press mouse button 2nd time, then paint 2nd circle, to third press clear the whole widget - I don't know how to do it!
PS.: sorry for my english...