Obsolete Members for QPainterPath
The following members of class QPainterPath are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) void | addRoundRect(const QRectF &r, int xRnd, int yRnd) |
(obsolete) void | addRoundRect(qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd) |
(obsolete) void | addRoundRect(const QRectF &rect, int roundness) |
(obsolete) void | addRoundRect(qreal x, qreal y, qreal width, qreal height, int roundness) |
(obsolete) QPainterPath | subtractedInverted(const QPainterPath &p) const |
Member Function Documentation
void QPainterPath::addRoundRect(const QRectF &r, int xRnd, int yRnd)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Adds a rectangle r with rounded corners to the path.
The xRnd and yRnd arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.
See also addRoundedRect().
void QPainterPath::addRoundRect(qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This is an overloaded function.
Adds a rectangle with rounded corners to the path. The rectangle is constructed from x, y, and the width and height w and h.
The xRnd and yRnd arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.
See also addRoundedRect().
void QPainterPath::addRoundRect(const QRectF &rect, int roundness)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This is an overloaded function.
Adds a rounded rectangle, rect, to the path.
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.
This function was introduced in Qt 4.3.
See also addRoundedRect().
void QPainterPath::addRoundRect(qreal x, qreal y, qreal width, qreal height, int roundness)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This is an overloaded function.
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.
This function was introduced in Qt 4.3.
See also addRoundedRect().
QPainterPath QPainterPath::subtractedInverted(const QPainterPath &p) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use subtracted() instead.
This function was introduced in Qt 4.3.
See also subtracted().
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.