PySide6.QtPdfWidgets.QPdfPageSelector¶
- class QPdfPageSelector¶
A widget for selecting a PDF page. More…
Added in version 6.6.
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
currentPage()
def
document()
def
setDocument()
Slots¶
def
setCurrentPage()
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 aQPdfDocument
.See also
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
- Access functions:
- property documentᅟ: QPdfDocument¶
This property holds the document to be viewed.
- Access functions:
- __init__()¶
- __init__(parent)
- Parameters:
parent –
QWidget
Constructs a PDF page selector with parent widget
parent
.- currentPage()¶
- Return type:
int
See also
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:
See also
Getter of property
documentᅟ
.- documentChanged(document)¶
- Parameters:
document –
QPdfDocument
Notification signal of property
documentᅟ
.- setCurrentPage(index)¶
- Parameters:
index – int
See also
Setter of property
currentPageᅟ
.- setDocument(document)¶
- Parameters:
document –
QPdfDocument
See also
Setter of property
documentᅟ
.