QPdfPageSelector#
A widget for selecting a PDF page. More…
New in version 6.6.
Synopsis#
Properties#
Functions#
def
currentPage
()def
currentPageLabel
()def
document
()def
setDocument
(document)
Slots#
def
setCurrentPage
(index)
Signals#
def
currentPageChanged
(index)def
currentPageLabelChanged
(label)def
documentChanged
(document)
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:
parent –
PySide6.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:
currentPage
()setCurrentPage
(index)Signal
currentPageChanged
(index)
- property PᅟySide6.QtPdfWidgets.QPdfPageSelector.currentPageLabel: str#
- Access functions:
Signal
currentPageLabelChanged
(label)
- property PᅟySide6.QtPdfWidgets.QPdfPageSelector.document: PySide6.QtPdf.QPdfDocument#
This property holds the document to be viewed.
- Access functions:
document
()setDocument
(document)Signal
documentChanged
(document)
- PySide6.QtPdfWidgets.QPdfPageSelector.currentPage()#
- Return type:
int
See also
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:
See also
Getter of property document
.
- PySide6.QtPdfWidgets.QPdfPageSelector.documentChanged(document)#
- Parameters:
document –
PySide6.QtPdf.QPdfDocument
Notification signal of property document
.
- PySide6.QtPdfWidgets.QPdfPageSelector.setCurrentPage(index)#
- Parameters:
index – int
See also
Setter of property currentPage
.
- PySide6.QtPdfWidgets.QPdfPageSelector.setDocument(document)#
- Parameters:
document –
PySide6.QtPdf.QPdfDocument
See also
Setter of property document
.