Markus
9th June 2010, 00:07
Hello all,
I need to find a point on a QPainterPath that is nearest to an arbitrary point outside the QPainterPath.
For example: I have a QPainterPath that is a circle and a point outside the circle. Now I want to draw the shortest possible line between the circle and the point.
If I use connectPath() it always connects to the beginning of the path (circle) which is never the nearest point.
How can I do that?
Markus
I need to find a point on a QPainterPath that is nearest to an arbitrary point outside the QPainterPath.
For example: I have a QPainterPath that is a circle and a point outside the circle. Now I want to draw the shortest possible line between the circle and the point.
If I use connectPath() it always connects to the beginning of the path (circle) which is never the nearest point.
How can I do that?
Markus