Unsolved 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
. -
Hi
if you take a look for
http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.htmlIt 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
when mouseMovementlike 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