Hi guys,
I have to convert MFC code to Qt.
I have a problem with creating arcs.
I have the MFC code:
pDC->Arc(upperLeft.x, upperLeft.y, lowerRight.x, lowerRight.y, dxStart, dyStart, dxEnd, dyEnd);
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:
void QPainter::drawChord ( const QRectF & rectangle,
int startAngle,
int spanAngle
)
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
Bookmarks