PDA

View Full Version : computing intersections of two shapes



alpinista
20th August 2009, 11:13
Hello,

are there some methods to compute points of intersection of two shapes (lines, rectangles ... ) in Qt? .. The ony one I have found is QPainterPath::intersected(), which does the job only for filled shapes and therefore it's not good for me ..
Thanks a lot

yogeshgokul
20th August 2009, 11:23
Yes,

QRect::intersected()
And for QPainterPath and QRegion also.