PDA

View Full Version : Finding intersection point



zgulser
14th October 2009, 07:59
Hi,

Is there a way to find point or points of intersection of 2 graphics items ?

Thanks in advance

yogeshgokul
14th October 2009, 08:15
Try:

QPainterPath pp1 = GraphicsItem1.clipPath();
QPainterPath pp2 = GraphicsItem2.clipPath();
QPainterPath pp3 = pp1.intersected(pp2);

zgulser
14th October 2009, 08:49
Hi again,

but how can I get the points from pp3?