In the the screenshot below all nodes are derived from QGraphicsItem and all edges are drawn by an instance of QPainterPath.
(Colored for clarity)
Is it possible to have the nodes clip/obscure the edges? Ideally, I’d like to have the edge invisible as soon as it “enters” a node. Is this possible with QPainterPath or do I have to use another way to draw paths?
If you use GraphicsLineItem instead of QPainterPath then you have access to setZValue to do this.
I don’t immediately see a way to do this with QPainterPath.