Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGraphicsPathItem anti collision with other items
addebito last edited by
Hi at all,
I need to connect some QGraphicsRectItems between them. At the moment I've some QGraphicsLineItems but some times this line goes over other Items, and I'd like to make this line as a spline or polyline (path) to go around the other items.
I see there is a QGraphicsPathItem... ok I can use it, but the problem is to calculate the shortest or best way to avoid the collision.
I can intersect other lines but not other QGraphicsRectItems.
Do you know how to calculate this route?
Do you have any idea?
Thanks a lot.