dev/qt/ QPainterPath


Operations:

clear -- efficiency allows memory allocation to be reused
moveTo x y
lineTo x y
arcMoveTo rect angle
arcMoveTo x y w h angle
arcTo rect startAngle sweepLength

Arcs

From the Qt docs:

QLinearGradient myGradient;
QPen myPen;

QPointF center, startPoint;

QPainterPath myPath;
myPath.moveTo(center);
myPath.arcTo(boundingRect, startAngle,
             sweepLength);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

produces