|  | Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# Obsolete Members for QPainter

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

- QPainter class reference

### Public Functions

- void drawRoundRect ( const QRectF & r, int xRnd = 25, int yRnd = 25 ) `(obsolete)`
- void drawRoundRect ( const QRect & r, int xRnd = 25, int yRnd = 25 ) `(obsolete)`
- void drawRoundRect ( int x, int y, int w, int h, int xRnd = 25, int yRnd = 25 ) `(obsolete)`
- const QMatrix & matrix () const `(obsolete)`
- bool matrixEnabled () const `(obsolete)`
- void setMatrix ( const QMatrix & matrix, bool combine = false ) `(obsolete)`
- void setMatrixEnabled ( bool enable ) `(obsolete)`

## Member Function Documentation

### void QPainter::drawRoundRect ( const QRectF & r, int xRnd = 25, int yRnd = 25 )

Draws a rectangle r with rounded corners.

The xRnd and yRnd arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.

A filled rectangle has a size of r.size(). A stroked rectangle has a size of r.size() plus the pen width.

See also drawRoundedRect().

### void QPainter::drawRoundRect ( const QRect & r, int xRnd = 25, int yRnd = 25 )

This is an overloaded function.

Draws the rectangle r with rounded corners.

### void QPainter::drawRoundRect ( int x, int y, int w, int h, int xRnd = 25, int yRnd = 25 )

This is an overloaded function.

Draws the rectangle x, y, w, h with rounded corners.

### const QMatrix & QPainter::matrix () const

Use worldTransform() instead.

See also setMatrix() and worldTransform().

### bool QPainter::matrixEnabled () const

Use worldMatrixEnabled() instead

See also setMatrixEnabled() and worldMatrixEnabled().

### void QPainter::setMatrix ( const QMatrix & matrix, bool combine = false )

Use setWorldTransform() instead.

See also matrix() and setWorldTransform().

### void QPainter::setMatrixEnabled ( bool enable )

Use setWorldMatrixEnabled() instead.

See also matrixEnabled() and setWorldMatrixEnabled().