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

void QPainterPath::addRoundRect ( qreal  x,
qreal  y,
qreal  width,
qreal  height,
int  roundness 
) [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds a rounded rectangle to the path, defined by the coordinates x and y with the specified width and height.

The roundness argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.

See also:

Definition at line 321 of file qpainterpath.h.

References addRoundRect().

    addRoundRect(QRectF(x, y, w, h), roundness);

Generated by  Doxygen 1.6.0   Back to index