Well, you are using QGraphicsLIneItem, while in the Diagram scene example, they are using QGraphicsPolygonItem for arrows.
Read the code for that example![]()
Well, you are using QGraphicsLIneItem, while in the Diagram scene example, they are using QGraphicsPolygonItem for arrows.
Read the code for that example![]()
yes, but Arrow object consists from a line and arrow. It looks like arrow is just drawn in paint method. Arrow class inherits QGraphicsLIneItemwhy is selection different then in basic QGraphicsLIneItem?Qt Code:
To copy to clipboard, switch view to plain text mode
what am I missing?
In the diagram escen example they reimplement the boundingRect function .
I think by default it draws the boundingRect with a dotted line .I have checked the QGraphicsLineItem::boundingrect function ,I dont know what does it do ,but ini some cases it returns that rectangle that is in the picture .
If God has friends ,then I cant be God.
Bookmarks