Details
-
Suggestion
-
Resolution: Out of scope
-
P2: Important
-
None
-
None
Description
1: Add an overload to QPainterPath::arcTo() that takes the ending point ant the bulge.
The arc should be drawn from current point to
ending point using the bulge to calculate the curve. In CADs, a bulge of
0 indicates a straight segment between current point and ending point,
and a bulge of 1 is a semicircle (negative values for the opposite
direction). This is a very common way of drawing circles in the GUI of CADs.
Another overload could use a third point instead of the bulge.
The same suggestion can be applied to QPainter arc functions (arc,
chord, pie).
2:In QPainter, drawArc(), drawChord() and drawPie() take the angles with
"int startAngle, int spanAngle". Add an overload for the QPainter functions listed above that
takes the angles as "degrees" values as "qreal"?
This would be easier to use than 1/16th of a degree and should also be
more precise (because it would be a qreal and not an int).
3: Other useful features may be:
- a QPainter::drawChord() that draws only the chord, without the arc (as
it does now), moreover this function could be added to QPainterPath too;