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#

Functions#

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 PySide6.QtPdf.QPdfBookmarkModel#

PySide6.QtPdf.QPdfBookmarkModel(parent)

Parameters:

parentPySide6.QtCore.QObject

Constructs a new bookmark model with parent object parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtPdf.QPdfBookmarkModel.document: PySide6.QtPdf.QPdfDocument#
Access functions:
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

See also

setDocument()

Getter of property document .

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

documentPySide6.QtPdf.QPdfDocument

Notification signal of property document .

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

documentPySide6.QtPdf.QPdfDocument

See also

document()

Setter of property document .