[Qt-interest] Detecting intersections in a QPainterPath

Andre Somers andre at familiesomers.nl
Tue Aug 10 13:56:21 CEST 2010


Op Di, 10 augustus, 2010 1:34 pm, schreef benswerts at telenet.be:
> Hi Carl,
>
> That's certainly an option. Unfortunately I can't seem to find out how to
> check for the intersection of a line with an arc or the intersection of 2
> arcs. My google-fu has failed me. I'll continue the search...
>
> Thanks,

Well, perhaps you can use QPainterPath::intersects. It works on other
painter paths. So, perhaps you can add your arc to a new QPainterPath, and
if it does not intersect with your existing one, add it to that one.

André





More information about the Qt-interest-old mailing list