QPdfSelection 類定義在一頁 PDF 文檔中已選擇的文本範圍及其幾何邊界。 更多...
| 頭: | #include <QPdfSelection> |
| Since: | Qt 5.15 |
該類在 Qt 5.15 引入。
| QRectF | boundingRectangle () const |
| QVector<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 ().
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.
訪問函數:
| QVector<QPolygonF> | bounds () const |
此特性保持選中文本。
訪問函數:
| QString | text () const |
此特性保持選定是否有效。
訪問函數:
| bool | isValid () const |