Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2016-05

Arc, Chord and Pie in QT widgetset

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Juha Manninen
Juha Manninen wrote
Actually the problem is in TQtWidgetSet.AngleChord which only calls QPainter_drawChord. Maybe it interprets the parameters differently.

For sure. What params are passed to the QPainter_drawChord() ? QPainter_drawChord() draws the chord defined by the given rectangle (x,y,width (x1),height (y2)), startAngle and spanAngle. The chord is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

Feel free to fix it

zeljko