QPdfPageSelector#

A widget for selecting a PDF page. More

Inheritance diagram of PySide6.QtPdfWidgets.QPdfPageSelector

New in version 6.6.

Synopsis#

Properties#

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

QPdfPageSelector is a widget for selecting a page label from a QPdfDocument .

See also

pageLabel()

class PySide6.QtPdfWidgets.QPdfPageSelector#

PySide6.QtPdfWidgets.QPdfPageSelector(parent)

Parameters:

parentPySide6.QtWidgets.QWidget

Constructs a PDF page selector with parent widget parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtPdfWidgets.QPdfPageSelector.currentPage: int#

This property holds the index (0-based) of the current page in the document.

Access functions:
property PᅟySide6.QtPdfWidgets.QPdfPageSelector.currentPageLabel: str#
Access functions:
property PᅟySide6.QtPdfWidgets.QPdfPageSelector.document: PySide6.QtPdf.QPdfDocument#

This property holds the document to be viewed.

Access functions:
PySide6.QtPdfWidgets.QPdfPageSelector.currentPage()#
Return type:

int

See also

setCurrentPage()

Getter of property currentPage .

PySide6.QtPdfWidgets.QPdfPageSelector.currentPageChanged(index)#
Parameters:

index – int

Notification signal of property currentPage .

PySide6.QtPdfWidgets.QPdfPageSelector.currentPageLabel()#
Return type:

str

Getter of property currentPageLabel .

PySide6.QtPdfWidgets.QPdfPageSelector.currentPageLabelChanged(label)#
Parameters:

label – str

Notification signal of property currentPageLabel .

PySide6.QtPdfWidgets.QPdfPageSelector.document()#
Return type:

PySide6.QtPdf.QPdfDocument

See also

setDocument()

Getter of property document .

PySide6.QtPdfWidgets.QPdfPageSelector.documentChanged(document)#
Parameters:

documentPySide6.QtPdf.QPdfDocument

Notification signal of property document .

PySide6.QtPdfWidgets.QPdfPageSelector.setCurrentPage(index)#
Parameters:

index – int

See also

currentPage()

Setter of property currentPage .

PySide6.QtPdfWidgets.QPdfPageSelector.setDocument(document)#
Parameters:

documentPySide6.QtPdf.QPdfDocument

See also

document()

Setter of property document .