The QPdfSelection class defines a range of text that has been selected on one page in a PDF document, and its geometric boundaries. More...
Header: | #include <QPdfSelection> |
Since: | Qt 5.15 |
|
|
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 |
See also QPdfDocument::getSelection().
[read-only]
boundingRectangle : const QRectFThis property holds the overall bounding rectangle (convex hull) around bounds.
Access functions:
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.
Note: For now, the polygons returned from QPdfDocument::getSelection() are always rectangles; but in the future it may be possible to represent more complex regions.
Access functions:
QList<QPolygonF> | bounds() const |
[read-only]
endIndex : const intThis property holds the index at the end of text within the full text on the page.
Access functions:
int | endIndex() const |
[read-only]
startIndex : const intThis property holds the index at the beginning of text within the full text on the page.
Access functions:
int | startIndex() const |
[read-only]
text : const QStringThis property holds the selected text.
Access functions:
QString | text() const |
[read-only]
valid : const boolThis property holds whether the selection is valid.
Access functions:
bool | isValid() const |
Copies text to the system clipboard depending on the mode selected.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: