IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPdfBookmarkModel Class

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

This class was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPdfBookmarkModel Class

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.

Member Type Documentation

 

enum QPdfBookmarkModel::Role

Constant

Value

Description

QPdfBookmarkModel::Role::Title

Qt::UserRole

The name of the bookmark for display.

QPdfBookmarkModel::Role::Level

257

The level of indentation.

QPdfBookmarkModel::Role::Page

258

The page number of the destination (int).

QPdfBookmarkModel::Role::Location

259

The position of the destination (QPointF).

QPdfBookmarkModel::Role::Zoom

260

The suggested zoom level (qreal).

Member Function Documentation

 

[explicit] QPdfBookmarkModel::QPdfBookmarkModel(QObject *parent)

Constructs a new bookmark model with parent object parent.

[override virtual] QPdfBookmarkModel::~QPdfBookmarkModel()

Destroys the model.

[override virtual] int QPdfBookmarkModel::columnCount(const QModelIndex &parent = QModelIndex()) const

[override virtual] QVariant QPdfBookmarkModel::data(const QModelIndex &index, int role) const

[override virtual] QModelIndex QPdfBookmarkModel::index(int row, int column, const QModelIndex &parent = QModelIndex()) const

[override virtual] QModelIndex QPdfBookmarkModel::parent(const QModelIndex &index) const

[override virtual] QHash<int, QByteArray> QPdfBookmarkModel::roleNames() const

[override virtual] int QPdfBookmarkModel::rowCount(const QModelIndex &parent = QModelIndex()) const

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+