QPdfLink Class
QPdfLinkクラスは、ページ上の領域(ハイパーリンクや検索結果など)とリンク先(ページ、ページ上の位置、表示するズームレベル)の間のリンクを定義します。詳細...
Header: | #include <QPdfLink> |
Since: | Qt 6.4 |
プロパティ
|
|
パブリック機能
QPdfLink() | |
QString | contextAfter() const |
QString | contextBefore() const |
void | copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const |
bool | isValid() const |
QPointF | location() const |
int | page() const |
QList<QRectF> | rectangles() const |
QString | toString() const |
QUrl | url() const |
qreal | zoom() const |
プロパティの説明
[read-only]
contextAfter : const QString
このプロパティは、検索文字列の後にページ上で見つかった隣接テキストを保持する。リンクがハイパーリンクの場合、この文字列は空です。
アクセス関数:
QString | contextAfter() const |
QPdfSearchModel::resultsOnPage() およびQPdfSearchModel::resultAtIndex()も参照 。
[read-only]
contextBefore : const QString
このプロパティは、検索文字列の前にページ上で見つかった隣接テキストを保持する。リンクがハイパーリンクの場合、この文字列は空です。
アクセス関数:
QString | contextBefore() const |
QPdfSearchModel::resultsOnPage() およびQPdfSearchModel::resultAtIndex()も参照 。
[read-only]
location : const QPointF
このプロパティは、page 上の位置をポイント単位で保持する。リンクが検索結果であれば、結果が見つかった場所であり、リンクがハイパーリンクであれば、リンク先の場所である。
アクセス関数:
QPointF | location() const |
[read-only]
page : const int
このプロパティはページ番号を保持する。リンクが検索結果であれば、その結果が見つかったページ番号であり、リンクがハイパーリンクであれば、リンク先のページ番号である。
アクセス関数です:
int | page() const |
[read-only]
rectangles : const QList<QRectF>
このプロパティは、リンクや検索結果が見つかったページで、そのリンクや検索結果が占める領域(矩形の集合)を保持する。テキストがページ上で複数行に折り返されている場合は、複数の矩形が存在する可能性があります:
アクセス関数:
QList<QRectF> | rectangles() const |
QPdfSearchModel::resultsOnPage() およびQPdfSearchModel::resultAtIndex()も参照 。
[read-only]
url : const QUrl
このプロパティは、リンクが外部ハイパーリンクの場合、リンク先のURLを保持します。
それ以外の場合は空です:
QUrl | url() const |
[read-only]
valid : const bool
このプロパティは、リンクが有効かどうかを保持する。
アクセス関数:
bool | isValid() const |
[read-only]
zoom : const qreal
このプロパティは、推奨倍率を保持し、1.0はデフォルト倍率(1ピクセル=1ポイント)を意味する。リンクが検索結果である場合、この値は使用されない。
アクセス関数:
qreal | zoom() const |
メンバー関数ドキュメント
QPdfLink::QPdfLink()
無効なデスティネーションを構築します。
validも参照してください 。
[invokable]
void QPdfLink::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const
与えられたmode に応じて、リンクのtoString() 表現をsystem clipboard にコピーします。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
[invokable]
QString QPdfLink::toString() const
表示用に翻訳された表現を返します。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
copyToClipboard()も参照してください 。
© 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.