wagmare
3rd December 2013, 05:10
hi friends/experts,
I have created a free draw on qgraphicsscene using a qgraphicsitem with QPainterpath. i can able to draw or mark anything on the scene using mousepress and mouseMove.
but how i can detect if the painterpath the user drawn crossed with the starting or any part of the path the user started..?
because if the painterpath is not completed by joining the starting point to the end point i have to draw a line to complete .i did it . but if user already crossed or joined the path at some point in the path , i have to clear the extra path lines.
so i want to detect how i can come to know if the path already collided with the path drawn .9829
i have marked the collision area in red circle .. please help me ..
I have created a free draw on qgraphicsscene using a qgraphicsitem with QPainterpath. i can able to draw or mark anything on the scene using mousepress and mouseMove.
but how i can detect if the painterpath the user drawn crossed with the starting or any part of the path the user started..?
because if the painterpath is not completed by joining the starting point to the end point i have to draw a line to complete .i did it . but if user already crossed or joined the path at some point in the path , i have to clear the extra path lines.
so i want to detect how i can come to know if the path already collided with the path drawn .9829
i have marked the collision area in red circle .. please help me ..