[Qt-interest] Problems with moving items around on QGraphicsView/scene

Darien Alonso Camacho darienad030111 at vcl.jovenclub.cu
Thu Apr 28 15:25:17 CEST 2011


For me all seems to be ok, if you want just test writing:

setFlag( QGraphicsItem::ItemIsMovable );

setFlag( QGraphicsItem::ItemIsSelectable );


instead of:

setFlags( ItemIsSelectable | ItemIsMovable | ItemIsFocusable);

in CanvasItem::CanvasItem() constructor. I have done this before and had 
not to implement CanvasItem::itemChange, keep in mind. You can see the 
diagram scene example too, it is very close to what you need.

Regards.



More information about the Qt-interest-old mailing list