Add to your definition of class MainWindow (probably in the mainwindow.h file) a data structure to hold the points at which you have clicked. I suggest using a QList<QPoint> for that. In mousePressEvent, add the point where you clicked to the list and call update(). Then, in paintEvent, iterate through your list drawing each circle.