Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpagedpaintdevice.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <qpagedpaintdevice.h>
6
8
9
11
34
42
51
88{
89 return d->setPageLayout(newPageLayout);
90}
91
110{
111 return d->setPageSize(pageSize);
112}
113
135{
136 return d->setPageOrientation(orientation);
137}
138
157{
158 return d->setPageMargins(margins, units);
159}
160
174{
175 return d->pageLayout();
176}
177
189
196{
197 d->pageRanges = ranges;
198}
199
\inmodule QtCore
Definition qmargins.h:270
\inmodule QtGui
Definition qpagelayout.h:20
Unit
This enum type is used to specify the measurement unit for page layout and margins.
Definition qpagelayout.h:24
Orientation
This enum type defines the page orientation.
Definition qpagelayout.h:33
The QPageRanges class represents a collection of page ranges.
Definition qpageranges.h:21
\inmodule QtGui
Definition qpagesize.h:22
virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)=0
virtual ~QPagedPaintDevicePrivate()
virtual bool setPageLayout(const QPageLayout &newPageLayout)=0
virtual bool setPageOrientation(QPageLayout::Orientation orientation)=0
virtual QPageLayout pageLayout() const =0
virtual bool setPageSize(const QPageSize &pageSize)=0
virtual bool setPageOrientation(QPageLayout::Orientation orientation)
virtual bool setPageSize(const QPageSize &pageSize)
virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units=QPageLayout::Millimeter)
QPageRanges pageRanges() const
~QPagedPaintDevice()
Destroys the object.
QPagedPaintDevicePrivate * dd()
QPageLayout pageLayout() const
QPagedPaintDevice(QPagedPaintDevicePrivate *dd)
QPagedPaintDevicePrivate * d
virtual bool setPageLayout(const QPageLayout &pageLayout)
virtual void setPageRanges(const QPageRanges &ranges)
Combined button and popup list for selecting options.
GLfloat units