1 Attachment(s)
Cann't move movable items on custom graphics view
Hi,
I'm drawing QGraphicsEllipseItem on QGraphicsScene viewed through MyGraphicsView subclassed from QGraphicsView (mouse events are reimplemented to handle zoom in/out by right-click-drag-release).
The item is supposed to be movable (setFlag(QGraphicsItem::ItemIsMovable,true)) but I cannot move it.
I'm attaching simple code to illustrate the problem.
What am I missing?
Wojtek
Re: Cann't move movable items on custom graphics view
You must call the base class implementation in your re-implemented mouse event handlers to let the view know about received events.
Re: Cann't move movable items on custom graphics view