PySide6.QtPdfWidgets.QPdfPageSelector

class QPdfPageSelector

A widget for selecting a PDF page. More

Inheritance diagram of PySide6.QtPdfWidgets.QPdfPageSelector

Added in version 6.6.

Synopsis

Properties

Methods

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()

Note

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

property currentPageᅟ: int

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

Access functions:
property currentPageLabelᅟ: str

This property holds the page label corresponding to the current page in the document.

This is the text presented to the user.

See also

pageLabel()

Access functions:
property documentᅟ: QPdfDocument

This property holds the document to be viewed.

Access functions:
__init__()
__init__(parent)
Parameters:

parentQWidget

Constructs a PDF page selector with parent widget parent.

currentPage()
Return type:

int

See also

setCurrentPage()

Getter of property currentPageᅟ .

currentPageChanged(index)
Parameters:

index – int

Notification signal of property currentPageᅟ .

currentPageLabel()
Return type:

str

Getter of property currentPageLabelᅟ .

currentPageLabelChanged(label)
Parameters:

label – str

Notification signal of property currentPageLabelᅟ .

document()
Return type:

QPdfDocument

See also

setDocument()

Getter of property documentᅟ .

documentChanged(document)
Parameters:

documentQPdfDocument

Notification signal of property documentᅟ .

setCurrentPage(index)
Parameters:

index – int

See also

currentPage()

Setter of property currentPageᅟ .

setDocument(document)
Parameters:

documentQPdfDocument

See also

document()

Setter of property documentᅟ .