I'm implementing the free-form 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.