53 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QPageLayout)
66 void setPageSize(
const QPageSize &pageSize,
70 void setOrientation(Orientation orientation);
71 Orientation orientation()
const;
73 void setUnits(Unit
units);
76#if QT_GUI_REMOVED_SINCE(6, 8)
77 bool setMargins(
const QMarginsF &margins);
78 bool setLeftMargin(
qreal leftMargin);
79 bool setRightMargin(
qreal rightMargin);
80 bool setTopMargin(
qreal topMargin);
81 bool setBottomMargin(
qreal bottomMargin);
84 bool setMargins(
const QMarginsF &margins, OutOfBoundsPolicy outOfBoundsPolicy = OutOfBoundsPolicy::Reject);
85 bool setLeftMargin(
qreal leftMargin, OutOfBoundsPolicy outOfBoundsPolicy = OutOfBoundsPolicy::Reject);
86 bool setRightMargin(
qreal rightMargin, OutOfBoundsPolicy outOfBoundsPolicy = OutOfBoundsPolicy::Reject);
87 bool setTopMargin(
qreal topMargin, OutOfBoundsPolicy outOfBoundsPolicy = OutOfBoundsPolicy::Reject);
88 bool setBottomMargin(
qreal bottomMargin, OutOfBoundsPolicy outOfBoundsPolicy = OutOfBoundsPolicy::Reject);
93 QMargins marginsPixels(
int resolution)
const;
95 void setMinimumMargins(
const QMarginsF &minMargins);
101 QRect fullRectPoints()
const;
102 QRect fullRectPixels(
int resolution)
const;
106 QRect paintRectPoints()
const;
107 QRect paintRectPixels(
int resolution)
const;
114 {
return lhs.equals(rhs); }
116 {
return !lhs.equals(rhs); }
118 QExplicitlySharedDataPointer<QPageLayoutPrivate>
d;
friend bool operator==(const QPageLayout &lhs, const QPageLayout &rhs)
Returns true if page layout lhs is equal to page layout rhs, i.e.
Unit
This enum type is used to specify the measurement unit for page layout and margins.
friend bool operator!=(const QPageLayout &lhs, const QPageLayout &rhs)
Returns true if page layout lhs is not equal to page layout rhs, i.e.
void swap(QPageLayout &other) noexcept
Swaps this page layout with other.
Mode
Defines the page layout mode.
Orientation
This enum type defines the page orientation.
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageLayout &pageLayout)