Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Want to show training lines when we move the rectangles
I have a rectangle in QGraphicsView , now when we move the rectangle from position X to Y .
it should trailing eges when moving from X to Y and when mouse is released then the trailing edges should go away
if you take a look for
It draw lines between object. You can use same code to do what you want.
You just need a line for each corner.
If I understand right what "trailing eges" means.
I think my requirement is different
not the requirement
the trailing lines should show dottled lines from start point to end
like the rectangle is moving
You can easy change the look of the line.
QPen QGraphicsLineItem::pen() const
but it is not showing the rectangle moving from point X to point Y
Let me try byt myself