class QPdfBookmarkModel#

The QPdfBookmarkModel class holds a tree of of links (anchors) within a PDF document, such as the table of contents. More

Inheritance diagram of PySide6.QtPdf.QPdfBookmarkModel

Synopsis#

Properties#

  • documentᅟ - The PDF document in which bookmarks are to be found

Methods#

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:

parentQObject

Constructs a new bookmark model with parent object parent.

document()#
Return type:

QPdfDocument

See also

setDocument()

Getter of property documentᅟ .

documentChanged(document)#
Parameters:

documentQPdfDocument

Notification signal of property documentᅟ .

setDocument(document)#
Parameters:

documentQPdfDocument

See also

document()

Setter of property documentᅟ .