well if u are implementing the edge as item, u need not worry about the rubber banding. what u need to do is just change the shape of the item on mouse movements.
for this u can maintain a list of edges in contact with a node, now when the node moves, u change the shape of edges connected to it and call the update to items if necessary.
As for the bounding rect u can return the rectangle covered by the line.
for shape, override the shape() method... and be sure to call prepareGeometryChange() before changing the shape...
try it, hope it will solve the prob
Just one more tip for you. I guess you can use already existing QGraphicsLineItem or a class derived from it for edges which simplies a lot. You just need to call QGraphicsLineItem::setLine(QLineF line) method and no need to worry about geometry at all. Hope this helps.
Bookmarks