QPdfBookmarkModel#
The QPdfBookmarkModel
class holds a tree of of links (anchors) within a PDF document, such as the table of contents. More…
Synopsis#
Functions#
def
document
()def
setDocument
(document)
Signals#
def
documentChanged
(document)
Detailed Description#
This is used in the Model/View Programming paradigm to display a table of contents in the form of a tree or list.
- class PySide6.QtPdf.QPdfBookmarkModel#
PySide6.QtPdf.QPdfBookmarkModel(parent)
- Parameters
parent –
PySide6.QtCore.QObject
Constructs a new bookmark model with parent object parent
.
- PySide6.QtPdf.QPdfBookmarkModel.Role#
Constant
Description
QPdfBookmarkModel.Role.Title
(inherits
enum.IntEnum
) The name of the bookmark for display.QPdfBookmarkModel.Role.Level
The level of indentation.
QPdfBookmarkModel.Role.Page
The page number of the destination (int).
QPdfBookmarkModel.Role.Location
The position of the destination (
QPointF
).QPdfBookmarkModel.Role.Zoom
The suggested zoom level (qreal).
- PySide6.QtPdf.QPdfBookmarkModel.document()#
- Return type
- PySide6.QtPdf.QPdfBookmarkModel.documentChanged(document)#
- Parameters
document –
PySide6.QtPdf.QPdfDocument
- PySide6.QtPdf.QPdfBookmarkModel.setDocument(document)#
- Parameters
document –
PySide6.QtPdf.QPdfDocument