[Qt] Arc, Chord and Pie in QT widgetset

zeljko zeljko at holobit.net
Sun May 29 11:06:35 CEST 2016


On 05/29/2016 09:17 AM, 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


More information about the Qt mailing list