QPagedPaintDevice ClassThe QPagedPaintDevice class is a represents a paintdevice that supports multiple pages. More... #include <QPagedPaintDevice> Inherits: QPaintDevice. Inherited by: QPdfWriter and QPrinter. Public Types
Public Functions
Protected Functions
Detailed DescriptionThe QPagedPaintDevice class is a represents a paintdevice that supports multiple pages. Paged paint devices are used to generate output for printing or for formats like PDF. QPdfWriter and QPrinter inherit from it. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QPagedPaintDevice::A0 | 5 | 841 x 1189 mm |
QPagedPaintDevice::A1 | 6 | 594 x 841 mm |
QPagedPaintDevice::A2 | 7 | 420 x 594 mm |
QPagedPaintDevice::A3 | 8 | 297 x 420 mm |
QPagedPaintDevice::A4 | 0 | 210 x 297 mm, 8.26 x 11.69 inches |
QPagedPaintDevice::A5 | 9 | 148 x 210 mm |
QPagedPaintDevice::A6 | 10 | 105 x 148 mm |
QPagedPaintDevice::A7 | 11 | 74 x 105 mm |
QPagedPaintDevice::A8 | 12 | 52 x 74 mm |
QPagedPaintDevice::A9 | 13 | 37 x 52 mm |
QPagedPaintDevice::B0 | 14 | 1000 x 1414 mm |
QPagedPaintDevice::B1 | 15 | 707 x 1000 mm |
QPagedPaintDevice::B2 | 17 | 500 x 707 mm |
QPagedPaintDevice::B3 | 18 | 353 x 500 mm |
QPagedPaintDevice::B4 | 19 | 250 x 353 mm |
QPagedPaintDevice::B5 | 1 | 176 x 250 mm, 6.93 x 9.84 inches |
QPagedPaintDevice::B6 | 20 | 125 x 176 mm |
QPagedPaintDevice::B7 | 21 | 88 x 125 mm |
QPagedPaintDevice::B8 | 22 | 62 x 88 mm |
QPagedPaintDevice::B9 | 23 | 33 x 62 mm |
QPagedPaintDevice::B10 | 16 | 31 x 44 mm |
QPagedPaintDevice::C5E | 24 | 163 x 229 mm |
QPagedPaintDevice::Comm10E | 25 | 105 x 241 mm, U.S. Common 10 Envelope |
QPagedPaintDevice::DLE | 26 | 110 x 220 mm |
QPagedPaintDevice::Executive | 4 | 7.5 x 10 inches, 190.5 x 254 mm |
QPagedPaintDevice::Folio | 27 | 210 x 330 mm |
QPagedPaintDevice::Ledger | 28 | 431.8 x 279.4 mm |
QPagedPaintDevice::Legal | 3 | 8.5 x 14 inches, 215.9 x 355.6 mm |
QPagedPaintDevice::Letter | 2 | 8.5 x 11 inches, 215.9 x 279.4 mm |
QPagedPaintDevice::Tabloid | 29 | 279.4 x 431.8 mm |
QPagedPaintDevice::Custom | 30 | Unknown, or a user defined size. |
The page size can also be specified in millimeters using setPageSizeMM(). In this case the page size enum is set to Custom.
Constructs a new paged paint device.
Destroys the object.
returns the current margins of the paint device. The default is 0.
/sa setMargins
See also setMargins().
Starts a new page.
Returns the currently used page size.
See also setPageSize().
Returns the page size in millimeters.
See also setPageSizeMM().
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.
Sets the size of the a page to size.
See also pageSize() and setPageSizeMM.
Sets the page size to size. size is specified in millimeters.
See also pageSizeMM().