PDA

View Full Version : How to draw arc between two points.



nikhil
19th April 2011, 13:31
Hi to all.
I want to draw arc between two points with center point known .

mcosta
19th April 2011, 13:55
As you know from Qt Docs, QPainter::drawArc requires a QRect, a startAngle and stopAngle.

If you know the arc center point e the other two points you can calculate theese values using basic 2D geometry calculation