The approach for live preview has been almost same but we figured out a way to remove the entities that got added in the scene before an entity was finally added in the drawing area. Incorporating another list for entities that were added to the drawing area helped us accomplish this since this was cleared at right moments.
So now live preview is in action for all the entities. The solution was quite simple. Live preview has invigorated the eCAD.
où il ya une volonté , il ya un moyen
Moving to my next task, live preview. Earlier we have been deploying only mousePressEvent() and mouseReleaseEvent(). The mouseMoveEvent() will be coming in action now.
The other day I have been working on this and my colleagues were really enjoying using this, though it is a bug.
Just a glimpse:
Isn’t it awesome? 😀 I will be fixing this now.
Yeah! I have implemented the functionality to have a live preview while a line is painted. Just a little playing with mouse events and it was done.
But as far as I was going through various examples and tutorials, I was seeing that so much has been done for trivial things. I got confused, leaving those behind for a while, just a hit of common sense I should say and it was done. No doubt, more efforts are required to proceed. Feeling charged!
Now I will be implementing the same for other entities.