PythonQt.QtGui.QPagedPaintDevice · declarations 001
Back to PythonQt.QtGui.QPagedPaintDevice
Margins
instance-attribute
Margins: type
PythonQtInstanceWrapper object
PageSize
instance-attribute
PageSize: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
devicePageLayout
devicePageLayout() -> Any
X.devicePageLayout() -> PythonQt.QtGui.QPageLayout
Upstream PySide2 reference signatures (binding differences may apply):
devicePageLayout(self) -> PySide2.QtGui.QPageLayout
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#devicePageLayout
margins
margins() -> Any
X.margins() -> PythonQt.QtGui.QPagedPaintDevice::Margins
Upstream PySide2 reference signatures (binding differences may apply):
margins(self) -> PySide2.QtGui.QPagedPaintDevice.Margins
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#margins
metric
metric(metric: Any) -> int
X.metric(metric) -> int
newPage
newPage() -> bool
X.newPage() -> bool
Supplemental documentation: Qt 5 reference:
[pure virtual] bool QPagedPaintDevice::newPage()
Starts a new page. Returns true on success.
Upstream PySide2 reference signatures (binding differences may apply):
newPage(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#newPage
pageLayout
pageLayout() -> Any
X.pageLayout() -> PythonQt.QtGui.QPageLayout
Supplemental documentation: Qt 5 reference:
QPageLayout QPagedPaintDevice::pageLayout() const
Returns the current page layout. Use this method to access the current QPageSize, QPageLayout::Orientation, QMarginsF, fullRect() and paintRect().
Note that you cannot use the setters on the returned object, you must either call the individual QPagedPaintDevice setters or use setPageLayout().
This function was introduced in Qt 5.3.
See also setPageLayout(), setPageSize(), setPageOrientation(), and setPageMargins().
Upstream PySide2 reference signatures (binding differences may apply):
pageLayout(self) -> PySide2.QtGui.QPageLayout
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#pageLayout
pageSize
pageSize() -> Any
X.pageSize()
Supplemental documentation: Qt 5 reference:
QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const
Returns the currently used page size.
See also setPageSize().
Upstream PySide2 reference signatures (binding differences may apply):
pageSize(self) -> PySide2.QtGui.QPagedPaintDevice.PageSize
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#pageSize
pageSizeMM
pageSizeMM() -> Any
X.pageSizeMM() -> PythonQt.QtCore.QSizeF
Upstream PySide2 reference signatures (binding differences may apply):
pageSizeMM(self) -> PySide2.QtCore.QSizeF
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#pageSizeMM
setMargins
setMargins(margins: Any) -> None
X.setMargins(margins)
Upstream PySide2 reference signatures (binding differences may apply):
setMargins(self, margins: PySide2.QtGui.QPagedPaintDevice.Margins) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setMargins
setPageLayout
setPageLayout(pageLayout: Any) -> bool
X.setPageLayout(pageLayout) -> bool
Supplemental documentation: Qt 5 reference:
bool QPagedPaintDevice::setPageLayout(const QPageLayout \&newPageLayout)
Sets the page layout to newPageLayout.
You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page layout to a new page. You should not call any painting methods between a call to setPageLayout() and newPage() as the wrong paint metrics may be used.
Returns true if the page layout was successfully set to newPageLayout.
This function was introduced in Qt 5.3.
See also pageLayout().
Upstream PySide2 reference signatures (binding differences may apply):
setPageLayout(self, pageLayout: PySide2.QtGui.QPageLayout) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setPageLayout
setPageMargins
setPageMargins(margins: Any, units: Any) -> bool
X.setPageMargins(margins, units) -> bool
Supplemental documentation: Qt 5 reference:
bool QPagedPaintDevice::setPageMargins(const QMarginsF \&margins)
Set the page margins in the current page layout units.
You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.
To get the current page margins use pageLayout().margins().
Returns true if the page margins were successfully set to margins.
This function was introduced in Qt 5.3.
See also pageLayout().
bool QPagedPaintDevice::setPageMargins(const QMarginsF \&margins, QPageLayout::Unit units)
Set the page margins defined in the given units.
You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.
To get the current page margins use pageLayout().margins().
Returns true if the page margins were successfully set to margins.
This function was introduced in Qt 5.3.
See also pageLayout().
Upstream PySide2 reference signatures (binding differences may apply):
setPageMargins(self, margins: PySide2.QtCore.QMarginsF) -> bool
setPageMargins(self, margins: PySide2.QtCore.QMarginsF, units: PySide2.QtGui.QPageLayout.Unit) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setPageMargins
setPageOrientation
setPageOrientation(orientation: Any) -> bool
X.setPageOrientation(orientation) -> bool
Supplemental documentation: Qt 5 reference:
bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation)
Sets the page orientation.
The page orientation is used to define the orientation of the page size when obtaining the page rect.
You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new orientation to a new page. You should not call any painting methods between a call to setPageOrientation() and newPage() as the wrong paint metrics may be used.
To get the current QPageLayout::Orientation use pageLayout().orientation().
Returns true if the page orientation was successfully set to orientation.
This function was introduced in Qt 5.3.
See also pageLayout().
Upstream PySide2 reference signatures (binding differences may apply):
setPageOrientation(self, orientation: PySide2.QtGui.QPageLayout.Orientation) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setPageOrientation
setPageSize
setPageSize(size: Any) -> Any
X.setPageSize(size)
Supplemental documentation: Qt 5 reference:
bool QPagedPaintDevice::setPageSize(const QPageSize \&pageSize)
Sets the page size to pageSize.
To get the current QPageSize use pageLayout().pageSize().
You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page size to a new page. You should not call any painting methods between a call to setPageSize() and newPage() as the wrong paint metrics may be used.
Returns true if the page size was successfully set to pageSize.
This function was introduced in Qt 5.3.
See also pageSize() and pageLayout().
[virtual] void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize size)
Sets the size of the a page to size.
See also setPageSizeMM().
Upstream PySide2 reference signatures (binding differences may apply):
setPageSize(self, pageSize: PySide2.QtGui.QPageSize) -> bool
setPageSize(self, size: PySide2.QtGui.QPagedPaintDevice.PageSize) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setPageSize
setPageSizeMM
setPageSizeMM(size: Any) -> None
X.setPageSizeMM(size)
Upstream PySide2 reference signatures (binding differences may apply):
setPageSizeMM(self, size: PySide2.QtCore.QSizeF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpagedpaintdevice.html#setPageSizeMM