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#

Functions#

Signals#

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

parentPySide6.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.QPdfDocument

PySide6.QtPdf.QPdfBookmarkModel.documentChanged(document)#
Parameters

documentPySide6.QtPdf.QPdfDocument

PySide6.QtPdf.QPdfBookmarkModel.setDocument(document)#
Parameters

documentPySide6.QtPdf.QPdfDocument