Unsolved how to move a line with the mouse on a drawing created with QGraphicsView
-
Hi everyone,
I would like to implement codes that allow you to move a line or a rectangle with the mouse on a drawing created with QGraphicsView, is there any small example? doing the search I can't find it or maybe I missed it, can you help me?
I repeat, I mean codes that allow you to move a line or rectangle with the mouse on a created drawing, I don't mean to create a line or rectangle with the mouse but to move with the mouse.
thank you so much for those who help me
-
Set the flags
QGraphicsItem::ItemIsMovable
andQGraphicsItem::ItemIsSelectable
, then you can click your item and move it around.