QPdfSelection Class

QPdfSelectionクラスは、PDF文書の1ページで選択されているテキストの範囲と、その幾何学的境界を定義します。詳細...

Header: #include <QPdfSelection>

プロパティ

パブリック機能

QRectF boundingRectangle() const
QList<QPolygonF> bounds() const
void copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const
int endIndex() const
bool isValid() const
int startIndex() const
QString text() const

詳細説明

QPdfDocument::getSelection()も参照

プロパティの説明

[read-only] boundingRectangle : const QRectF

この特性は、bounds を囲む全体的な外接矩形(凸包)を保持します。

アクセス関数:

QRectF boundingRectangle() const

[read-only] bounds : const QList<QPolygonF>

このプロパティは、選択されたテキストがページ上で占める領域の集合を保持し、多角形で表現される。多角形の座標系は、ページの左上隅を原点とし、単位はです。

注意: 今のところ、QPdfDocument::getSelection ()から返される多角形は常に長方形ですが、将来はもっと複雑な領域を表現できるようになるかもしれません。

アクセス関数:

QList<QPolygonF> bounds() const

[read-only] endIndex : const int

このプロパティは、ページ上のフルテキスト内のtext の末尾のインデックスを保持する。

アクセス関数:

int endIndex() const

[read-only] startIndex : const int

このプロパティは、ページ上の全文テキスト内のtext 冒頭のインデックスを保持する。

アクセス関数:

int startIndex() const

[read-only] text : const QString

このプロパティは選択されたテキストを保持する。

アクセス関数:

QString text() const

[read-only] valid : const bool

このプロパティは、選択が有効かどうかを保持する。

関数にアクセスします:

bool isValid() const

メンバ関数ドキュメント

void QPdfSelection::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const

選択されたmode に応じてtextsystem clipboard にコピーする。

© 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.