Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
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.