QPdfSelection 類

QPdfSelection 類定義在一頁 PDF 文檔中已選擇的文本範圍及其幾何邊界。 更多...

頭: #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

This property holds the overall bounding rectangle (convex hull) around bounds .

訪問函數:

QRectF boundingRectangle () const

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

This property holds a set of regions that the selected text occupies on the page, represented as polygons. The coordinate system for the polygons has the origin at the upper-left corner of the page, and the units are points .

注意: For now, the polygons returned from QPdfDocument::getSelection () are always rectangles; but in the future it may be possible to represent more complex regions.

訪問函數:

QList<QPolygonF> bounds () const

[read-only] endIndex : const int

This property holds the index at the end of text within the full text on the page.

訪問函數:

int endIndex () const

[read-only] startIndex : const int

This property holds the index at the beginning of text within the full text on the page.

訪問函數:

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

拷貝 text 係統剪貼闆 從屬 mode selected.

內容

  1. 特性

  2. 公共函數

  3. 詳細描述