164 LastPageSize = EnvelopeYou4,
194 SizeMatchPolicy matchPolicy = FuzzyMatch);
197 SizeMatchPolicy matchPolicy = FuzzyMatch);
199 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QPageSize)
206#if QT_GUI_REMOVED_SINCE(6, 4)
211 bool isValid()
const;
216 PageSizeId
id()
const;
218 int windowsId()
const;
220 QSizeF definitionSize()
const;
221 Unit definitionUnits()
const;
224 QSize sizePoints()
const;
225 QSize sizePixels(
int resolution)
const;
228 QRect rectPoints()
const;
229 QRect rectPixels(
int resolution)
const;
234 static PageSizeId
id(
const QSize &pointSize,
235 SizeMatchPolicy matchPolicy = FuzzyMatch);
237 SizeMatchPolicy matchPolicy = FuzzyMatch);
239 static PageSizeId
id(
int windowsId);
240 static int windowsId(PageSizeId pageSizeId);
242 static QSizeF definitionSize(PageSizeId pageSizeId);
243 static Unit definitionUnits(PageSizeId pageSizeId);
246 static QSize sizePoints(PageSizeId pageSizeId);
247 static QSize sizePixels(PageSizeId pageSizeId,
int resolution);
255 {
return lhs.equals(rhs); }
257 {
return !(lhs == rhs); }
262 QSharedDataPointer<QPageSizePrivate>
d;
Unit
This enum type is used to specify the measurement unit for page sizes.
friend bool operator==(const QPageSize &lhs, const QPageSize &rhs)
Returns true if page size lhs is equal to page size rhs, i.e.
void swap(QPageSize &other) noexcept
Swaps this QPageSize with other.
friend bool operator!=(const QPageSize &lhs, const QPageSize &rhs)
Returns true if page size lhs is unequal to page size rhs, i.e.
SizeMatchPolicy
\value FuzzyMatch Match to a standard page size if within the margin of tolerance.
PageSizeId
This enum type lists the available page sizes as defined in the Postscript PPD standard.
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageSize &pageSize)