PySide6.QtPdf.QPdfBookmarkModel¶
- class QPdfBookmarkModel¶
The
QPdfBookmarkModel
class holds a tree of of links (anchors) within a PDF document, such as the table of contents. More…Synopsis¶
Properties¶
documentᅟ
- The PDF document in which bookmarks are to be found
Methods¶
def
__init__()
def
document()
def
setDocument()
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¶
This is used in the Model/View Programming paradigm to display a table of contents in the form of a tree or list.
- class 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).
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property documentᅟ: QPdfDocument¶
This property holds the PDF document in which bookmarks are to be found..
- Access functions:
- __init__()¶
- __init__(parent)
- Parameters:
parent –
QObject
Constructs a new bookmark model with parent object
parent
.- document()¶
- Return type:
See also
Getter of property
documentᅟ
.- documentChanged(document)¶
- Parameters:
document –
QPdfDocument
Notification signal of property
documentᅟ
.- setDocument(document)¶
- Parameters:
document –
QPdfDocument
See also
Setter of property
documentᅟ
.