Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to move a line with the mouse on a drawing created with QGraphicsView
Domenico last edited by
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
Pl45m4 last edited by
Set the flags
QGraphicsItem::ItemIsSelectable, then you can click your item and move it around.