QPdfLinkModel Class
QPdfLinkModel クラスは、指定されたpage が含む各リンクのジオメトリとリンク先を保持します。詳細...
Header: | #include <QPdfLinkModel> |
Since: | Qt 6.6 |
Inherits: | QAbstractListModel |
パブリックタイプ
enum class | Role { Link, Rectangle, Url, Page, Location, Zoom } |
プロパティ
パブリック関数
QPdfLinkModel(QObject *parent = nullptr) | |
virtual | ~QPdfLinkModel() override |
QPdfDocument * | document() const |
QPdfLink | linkAt(QPointF point) const |
int | page() const |
再実装パブリック関数
virtual QVariant | data(const QModelIndex &index, int role) const override |
virtual int | rowCount(const QModelIndex &parent) const override |
パブリック・スロット
void | setDocument(QPdfDocument *document) |
void | setPage(int page) |
シグナル
void | documentChanged() |
void | pageChanged(int page) |
メンバ型ドキュメント
enum class QPdfLinkModel::Role
定数 | 値 | 説明 |
---|---|---|
QPdfLinkModel::Role::Link | Qt::UserRole | QPdfLink オブジェクト。 |
QPdfLinkModel::Role::Rectangle | 257 | リンクを囲む矩形。 |
QPdfLinkModel::Role::Url | 258 | リンクがウェブリンクの場合、そのURL。 |
QPdfLinkModel::Role::Page | 259 | リンクが内部リンクの場合は、リンクがジャンプするページ番号、それ以外の場合は-1 。 |
QPdfLinkModel::Role::Location | 260 | リンクが内部リンクの場合、リンクがジャンプするページ上の場所。 |
QPdfLinkModel::Role::Zoom | 261 | リンクが内部リンクの場合、リンク先ページの推奨ズームレベル。 |
プロパティ ドキュメント
document : QPdfDocument*
このプロパティは、リンクを読み込むドキュメントを保持します。
アクセス関数
QPdfDocument * | document() const |
void | setDocument(QPdfDocument *document) |
通知シグナル
void | documentChanged() |
page : int
このプロパティは、リンクを読み込むページを保持します。
アクセス関数です:
int | page() const |
void | setPage(int page) |
通知シグナル
void | pageChanged(int page) |
メンバー関数ドキュメント
[explicit]
QPdfLinkModel::QPdfLinkModel(QObject *parent = nullptr)
親オブジェクトparent を持つ新しいリンクモデルを構築する。
[override virtual noexcept]
QPdfLinkModel::~QPdfLinkModel()
モデルを破壊する。
[override virtual]
QVariant QPdfLinkModel::data(const QModelIndex &index, int role) const
再実装:QAbstractItemModel::data(const QModelIndex &index, int role) const.
QPdfLink QPdfLinkModel::linkAt(QPointF point) const
point (ポイント単位、1/72インチで指定)の下にリンクが見つかればvalid 、見つからなければ無効なリンクを返す。言い換えれば、この関数はピッキングに便利で、マウスクリックやホバーを処理する。
[override virtual]
int QPdfLinkModel::rowCount(const QModelIndex &parent) const
再実装: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.