Skip to content

PythonQt.QtGui.QPrintPreviewWidget · declarations 001

Back to PythonQt.QtGui.QPrintPreviewWidget

AllPagesView instance-attribute

AllPagesView: Any

CustomZoom instance-attribute

CustomZoom: Any

FacingPagesView instance-attribute

FacingPagesView: Any

FitInView instance-attribute

FitInView: Any

FitToWidth instance-attribute

FitToWidth: Any

SinglePageView instance-attribute

SinglePageView: Any

ZoomMode instance-attribute

ZoomMode: 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

currentPage

currentPage() -> int

X.currentPage() -> int

Supplemental documentation: Qt 5 reference:

int QPrintPreviewWidget::currentPage() const

Returns the currently viewed page in the preview.

See also setCurrentPage().

Upstream PySide2 reference signatures (binding differences may apply):

currentPage(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#currentPage

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.destroyed; argument details are not documented.

fitInView

fitInView() -> None

X.fitInView()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::fitInView()

This is a convenience function and is the same as calling setZoomMode(QPrintPreviewWidget::FitInView).

Upstream PySide2 reference signatures (binding differences may apply):

fitInView(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#fitInView

fitToWidth

fitToWidth() -> None

X.fitToWidth()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::fitToWidth()

This is a convenience function and is the same as calling setZoomMode(QPrintPreviewWidget::FitToWidth).

Upstream PySide2 reference signatures (binding differences may apply):

fitToWidth(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#fitToWidth

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.objectNameChanged; argument details are not documented.

orientation

orientation() -> Any

X.orientation()

Supplemental documentation: Qt 5 reference:

QPrinter::Orientation QPrintPreviewWidget::orientation() const

Returns the current orientation of the preview. This value is obtained from the QPrinter object associated with the preview.

See also setOrientation().

Upstream PySide2 reference signatures (binding differences may apply):

orientation(self) -> PySide2.QtPrintSupport.QPrinter.Orientation

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#orientation

pageCount

pageCount() -> int

X.pageCount() -> int

Supplemental documentation: Qt 5 reference:

int QPrintPreviewWidget::pageCount() const

Returns the number of pages in the preview.

This function was introduced in Qt 4.6.

Upstream PySide2 reference signatures (binding differences may apply):

pageCount(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#pageCount

paintRequested

paintRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.paintRequested; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QPrintPreviewWidget::paintRequested(QPrinter *printer)

This signal is emitted when the preview widget needs to generate a set of preview pages. printer is the printer associated with this preview widget.

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#paintRequested

previewChanged

previewChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.previewChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QPrintPreviewWidget::previewChanged()

This signal is emitted whenever the preview widget has changed some internal state, such as the orientation.

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#previewChanged

print

print() -> Any

X.print()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::print()

Prints the preview to the printer associated with the preview.

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#print

setAllPagesViewMode

setAllPagesViewMode() -> None

X.setAllPagesViewMode()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setAllPagesViewMode()

This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::AllPagesView).

Upstream PySide2 reference signatures (binding differences may apply):

setAllPagesViewMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setAllPagesViewMode

setCurrentPage

setCurrentPage(pageNumber: int) -> None

X.setCurrentPage(pageNumber)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setCurrentPage(int page)

Sets the current page in the preview. This will cause the view to skip to the beginning of page.

See also currentPage().

Upstream PySide2 reference signatures (binding differences may apply):

setCurrentPage(self, pageNumber: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setCurrentPage

setFacingPagesViewMode

setFacingPagesViewMode() -> None

X.setFacingPagesViewMode()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setFacingPagesViewMode()

This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::FacingPagesView).

Upstream PySide2 reference signatures (binding differences may apply):

setFacingPagesViewMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setFacingPagesViewMode

setLandscapeOrientation

setLandscapeOrientation() -> None

X.setLandscapeOrientation()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setLandscapeOrientation()

This is a convenience function and is the same as calling setOrientation(QPrinter::Landscape).

Upstream PySide2 reference signatures (binding differences may apply):

setLandscapeOrientation(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setLandscapeOrientation

setOrientation

setOrientation(orientation: Any) -> None

X.setOrientation(orientation)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setOrientation(QPrinter::Orientation orientation)

Sets the current orientation to orientation. This value will be set on the QPrinter object associated with the preview.

See also orientation().

Upstream PySide2 reference signatures (binding differences may apply):

setOrientation(self, orientation: PySide2.QtPrintSupport.QPrinter.Orientation) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setOrientation

setPortraitOrientation

setPortraitOrientation() -> None

X.setPortraitOrientation()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setPortraitOrientation()

This is a convenience function and is the same as calling setOrientation(QPrinter::Portrait).

Upstream PySide2 reference signatures (binding differences may apply):

setPortraitOrientation(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setPortraitOrientation

setSinglePageViewMode

setSinglePageViewMode() -> None

X.setSinglePageViewMode()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setSinglePageViewMode()

This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::SinglePageView).

Upstream PySide2 reference signatures (binding differences may apply):

setSinglePageViewMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setSinglePageViewMode

setViewMode

setViewMode(viewMode: Any) -> None

X.setViewMode(viewMode)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setViewMode(QPrintPreviewWidget::ViewMode mode)

Sets the view mode to mode. The default view mode is SinglePageView.

See also viewMode().

Upstream PySide2 reference signatures (binding differences may apply):

setViewMode(self, viewMode: PySide2.QtPrintSupport.QPrintPreviewWidget.ViewMode) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setViewMode

setVisible

setVisible(visible: bool) -> None

X.setVisible(visible)

Supplemental documentation: Qt 5 reference:

[override virtual] void QPrintPreviewWidget::setVisible(bool visible)

Upstream PySide2 reference signatures (binding differences may apply):

setVisible(self, visible: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setVisible

setZoomFactor

setZoomFactor(zoomFactor: float) -> None

X.setZoomFactor(zoomFactor)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setZoomFactor(qreal factor)

Sets the zoom factor of the view to factor. For example, a value of 1.0 indicates an unscaled view, which is approximately the size the view will have on paper. A value of 0.5 will halve the size of the view, while a value of 2.0 will double the size of the view.

See also zoomFactor().

Upstream PySide2 reference signatures (binding differences may apply):

setZoomFactor(self, zoomFactor: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setZoomFactor

setZoomMode

setZoomMode(zoomMode: Any) -> None

X.setZoomMode(zoomMode)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::setZoomMode(QPrintPreviewWidget::ZoomMode zoomMode)

Sets the zoom mode to zoomMode. The default zoom mode is FitInView.

See also zoomMode(), viewMode(), and setViewMode().

Upstream PySide2 reference signatures (binding differences may apply):

setZoomMode(self, zoomMode: PySide2.QtPrintSupport.QPrintPreviewWidget.ZoomMode) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#setZoomMode

updatePreview

updatePreview() -> None

X.updatePreview()

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::updatePreview()

This function updates the preview, which causes the paintRequested() signal to be emitted.

Upstream PySide2 reference signatures (binding differences may apply):

updatePreview(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#updatePreview

viewMode

viewMode() -> Any

X.viewMode()

Supplemental documentation: Qt 5 reference:

QPrintPreviewWidget::ViewMode QPrintPreviewWidget::viewMode() const

Returns the current view mode. The default view mode is SinglePageView.

See also setViewMode().

Upstream PySide2 reference signatures (binding differences may apply):

viewMode(self) -> PySide2.QtPrintSupport.QPrintPreviewWidget.ViewMode

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#viewMode

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPrintPreviewWidget.windowTitleChanged; argument details are not documented.

zoomFactor

zoomFactor() -> float

X.zoomFactor() -> float

Supplemental documentation: Qt 5 reference:

qreal QPrintPreviewWidget::zoomFactor() const

Returns the zoom factor of the view.

See also setZoomFactor().

Upstream PySide2 reference signatures (binding differences may apply):

zoomFactor(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#zoomFactor

zoomIn

zoomIn(zoom: float) -> None

X.zoomIn(zoom)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::zoomIn(qreal factor \= 1.1)

Zooms the current view in by factor. The default value for factor is 1.1, which means the view will be scaled up by 10%.

Upstream PySide2 reference signatures (binding differences may apply):

zoomIn(self, zoom: float=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#zoomIn

zoomMode

zoomMode() -> Any

X.zoomMode()

Supplemental documentation: Qt 5 reference:

QPrintPreviewWidget::ZoomMode QPrintPreviewWidget::zoomMode() const

Returns the current zoom mode.

See also setZoomMode(), viewMode(), and setViewMode().

Upstream PySide2 reference signatures (binding differences may apply):

zoomMode(self) -> PySide2.QtPrintSupport.QPrintPreviewWidget.ZoomMode

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#zoomMode

zoomOut

zoomOut(zoom: float) -> None

X.zoomOut(zoom)

Supplemental documentation: Qt 5 reference:

[slot] void QPrintPreviewWidget::zoomOut(qreal factor \= 1.1)

Zooms the current view out by factor. The default value for factor is 1.1, which means the view will be scaled down by 10%.

Upstream PySide2 reference signatures (binding differences may apply):

zoomOut(self, zoom: float=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qprintpreviewwidget.html#zoomOut