Hi friends,
im implementing the freeform style drawing for drawing a free path using the mouse press and move with Qpainter QPainterpath

now i have to detect when exactly the drawn path crossed or intersects with the other. how i can identify when the lines crossed each other at some point and give warning to the user.

is there a Qt API to tell that if a path composed of different elements intersect in a point or not.?
because QPainterPath::​intersects function can be used for two different painterpath . how to check for the current painterpath

IntersectionPainterpath.png