Yesterday, I started with storing the coordinates of various points that are painted in the graphics scene on mouse clicks in vector.
The problem that came up was that there was repetition of a point two times being stored in the vector. The qDebug() (== cout) was implemented in the wrong place. We corrected it.
The next thing that came up wrong was that the vector was not getting appended. Coordinates of one point, the one that was painted at the last, were stored in the vector. The size of the vector remained 1.
On a few modifications, the vector size got incremented every time a new point was plotted. BUT the points that have been painted previously disappeared, only the one painted in the end was visible in the graphics scene. Perhaps, a new scene is generated every time a new point is plotted.
Today, I will be looking into this issue and soon will be able to get it working.