QPdfBookmarkModel Class
Die Klasse QPdfBookmarkModel enthält einen Baum von Verknüpfungen (Ankern) innerhalb eines PDF-Dokuments, wie z.B. das Inhaltsverzeichnis. Mehr...
Header: | #include <QPdfBookmarkModel> |
Inherits: | QAbstractItemModel |
Öffentliche Typen
enum class | Role { Title, Level, Page, Location, Zoom } |
Eigenschaften
- document : QPdfDocument*
Öffentliche Funktionen
QPdfBookmarkModel(QObject *parent) | |
virtual | ~QPdfBookmarkModel() override |
QPdfDocument * | document() const |
void | setDocument(QPdfDocument *document) |
Reimplementierte öffentliche Funktionen
virtual int | columnCount(const QModelIndex &parent = QModelIndex()) const override |
virtual QVariant | data(const QModelIndex &index, int role) const override |
virtual QModelIndex | index(int row, int column, const QModelIndex &parent = QModelIndex()) const override |
virtual QModelIndex | parent(const QModelIndex &index) const override |
virtual QHash<int, QByteArray> | roleNames() const override |
virtual int | rowCount(const QModelIndex &parent = QModelIndex()) const override |
Signale
void | documentChanged(QPdfDocument *document) |
Detaillierte Beschreibung
Wird im Paradigma der Model/View-Programmierung verwendet, um ein Inhaltsverzeichnis in Form eines Baums oder einer Liste anzuzeigen.
Dokumentation der Mitgliedstypen
enum class QPdfBookmarkModel::Role
Konstante | Wert | Beschreibung |
---|---|---|
QPdfBookmarkModel::Role::Title | Qt::UserRole | Der Name des Lesezeichens für die Anzeige. |
QPdfBookmarkModel::Role::Level | 257 | Die Ebene der Einrückung. |
QPdfBookmarkModel::Role::Page | 258 | Die Seitenzahl des Ziels (int). |
QPdfBookmarkModel::Role::Location | 259 | Die Position des Ziels (QPointF). |
QPdfBookmarkModel::Role::Zoom | 260 | Die vorgeschlagene Zoomstufe (qreal). |
Dokumentation der Eigenschaft
document : QPdfDocument*
Diese Eigenschaft enthält das PDF-Dokument, in dem die Lesezeichen zu finden sind.
Zugriffsfunktionen:
QPdfDocument * | document() const |
void | setDocument(QPdfDocument *document) |
Benachrichtigungssignal:
void | documentChanged(QPdfDocument *document) |
Member Function Dokumentation
[explicit]
QPdfBookmarkModel::QPdfBookmarkModel(QObject *parent)
Konstruiert ein neues Lesezeichenmodell mit dem übergeordneten Objekt parent.
[override virtual noexcept]
QPdfBookmarkModel::~QPdfBookmarkModel()
Zerstört das Modell.
[override virtual]
int QPdfBookmarkModel::columnCount(const QModelIndex &parent = QModelIndex()) const
Reimplements: QAbstractItemModel::columnCount(const QModelIndex &parent) const.
[override virtual]
QVariant QPdfBookmarkModel::data(const QModelIndex &index, int role) const
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
[override virtual]
QModelIndex QPdfBookmarkModel::index(int row, int column, const QModelIndex &parent = QModelIndex()) const
Reimplements: QAbstractItemModel::index(int row, int column, const QModelIndex &parent) const.
[override virtual]
QModelIndex QPdfBookmarkModel::parent(const QModelIndex &index) const
Reimplements: QAbstractItemModel::parent(const QModelIndex &index) const.
[override virtual]
QHash<int, QByteArray> QPdfBookmarkModel::roleNames() const
Reimplements: QAbstractItemModel::roleNames() const.
[override virtual]
int QPdfBookmarkModel::rowCount(const QModelIndex &parent = QModelIndex()) const
Reimplements: QAbstractItemModel::rowCount(const QModelIndex &parent) const.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.