Hi guys,

I have to convert MFC code to Qt.
I have a problem with creating arcs.

I have the MFC code:
Qt Code:
  1. pDC->Arc(upperLeft.x, upperLeft.y, lowerRight.x, lowerRight.y, dxStart, dyStart, dxEnd, dyEnd);
To copy to clipboard, switch view to plain text mode 
Here are docs for MFC arc:
http://msdn2.microsoft.com/en-us/lib...k5(VS.80).aspx
I need to paint the arc using this Qt method:
Qt Code:
  1. void QPainter::drawChord ( const QRectF & rectangle, int startAngle, int spanAngle )
To copy to clipboard, switch view to plain text mode 

But I have a problem with startAngle/span Angle. I have the coordinates(dxStart.....DyEnd), but don't know howto interpret them to create a startAngle in the Qt method.

Any ideas? Thanks

Maverick