Hello,
I implemented a subclass of QGraphicsItem to draw with the mouse when the mouse button is pressed and moved on a QGraphicsView. Whatever shape is made with the mouse upon release of the button I draw a line between the first point and the last point to never have an unclosed shape.
What I want to do now is be able to move that shape created on the view. What I can't figure out is how can I know when the mouse is inside the bounds of the newly drawn shape?
And also how could I paint the inside of the shape, so for example you draw a circle, I want the only the inside of the circle painted when I release the mouse.
I really appreciate any help and tips on how to do this.
Thanks!




Reply With Quote

Bookmarks