- Qt 5.15
- Qt GUI
- C++ Classes
- QPagedPaintDevice
- Qt 5.15.19 Reference Documentation

# Obsolete Members for QPagedPaintDevice

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

## Public Functions

`(obsolete)` | QPagedPaintDevice()
`(obsolete)` Margins | margins() const
`(obsolete)` QSizeF | pageSizeMM() const
`(obsolete)` virtual void | setMargins(const Margins &margins)
`(obsolete)` virtual void | setPageSizeMM(const QSizeF &size)

## Member Function Documentation

### QPagedPaintDevice::QPagedPaintDevice()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Constructs a new paged paint device.

### Margins QPagedPaintDevice::margins() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use pageLayout().margins() instead. Returns the current margins of the paint device. The default is 0.

Margins are specified in millimeters.

See also setMargins().

### QSizeF QPagedPaintDevice::pageSizeMM() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use pageLayout().pageSize() instead.

Returns the page size in millimeters.

See also setPageSizeMM().

### `[virtual]` void QPagedPaintDevice::setMargins(const Margins &margins)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use setPageMargins(QMarginsF, QPageLayout::Unit) instead. Sets the margins to be used to margins.

Margins are specified in millimeters.

The margins are purely a hint to the drawing method. They don't affect the coordinate system or clipping.

See also margins().

### `[virtual]` void QPagedPaintDevice::setPageSizeMM(const QSizeF &size)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use setPageSize(QPageSize) instead. Sets the page size to size. size is specified in millimeters.

If the size matches a standard QPagedPaintDevice::PageSize then that page size will be used, otherwise QPagedPaintDevice::Custom will be set.

See also pageSizeMM().