Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QPainterPath::arcMoveTo ( const QRectF rectangle,
qreal  angle 
)

Since:
4.2
Creates a move to that lies on the arc that occupies the given rectangle at angle.

Angles are specified in degrees. Clockwise arcs can be specified using negative angles.

See also:
moveTo(), arcTo()

Definition at line 894 of file qpainterpath.cpp.

References QRectF::isNull(), and moveTo().

Referenced by addRoundRect(), arcMoveTo(), QPainter::drawArc(), and QPainter::drawChord().

{
    if (rect.isNull())
        return;

    QPointF pt;
    qt_find_ellipse_coords(rect, angle, 0, &pt, 0);
    moveTo(pt);
}


Generated by  Doxygen 1.6.0   Back to index