Now we are on track and going on a steady pace.
Today we implemented the save and load feature in eCAD.
We can save our points in an xml format. And this xml file will have a <point> tag which has x and y as its attributes and will store the point entity’s x coordinate and y coordinate respectively. This information is written with the help of QXmlStreamWriter.
And the same xml file can be opened in eCAD, which is parsed using QXmlStreamReader which then allows us to re-draw the entities.
The CadGraphicsScene class has read and write functions which are responsible for parsing.