The QPdfSelection class defines a range of text that has been selected on one page in a PDF document, and its geometric boundaries.
More...
#include <qpdfselection.h>
|
bool | valid |
| This property holds whether the selection is valid.
|
QList< QPolygonF > | bounds |
| This property holds a set of regions that the selected text occupies on the page, represented as polygons.
|
QRectF | boundingRectangle |
| This property holds the overall bounding rectangle (convex hull) around \l bounds.
|
QString | text |
| This property holds the selected text.
|
int | startIndex |
| This property holds the index at the beginning of \l text within the full text on the page.
|
int | endIndex |
| This property holds the index at the end of \l text within the full text on the page.
|
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document, and its geometric boundaries.
- Since
- 5.15 \inmodule QtPdf
- See also
- QPdfDocument::getSelection()
Definition at line 18 of file qpdfselection.h.
◆ ~QPdfSelection()
QPdfSelection::~QPdfSelection |
( |
| ) |
|
|
default |
◆ QPdfSelection() [1/2]
◆ QPdfSelection() [2/2]
◆ boundingRectangle()
QRectF QPdfSelection::boundingRectangle |
( |
| ) |
const |
◆ bounds()
◆ endIndex()
int QPdfSelection::endIndex |
( |
| ) |
const |
◆ isValid()
bool QPdfSelection::isValid |
( |
| ) |
const |
◆ operator=()
◆ startIndex()
int QPdfSelection::startIndex |
( |
| ) |
const |
◆ swap()
◆ text()
QString QPdfSelection::text |
( |
| ) |
const |
◆ QPdfDocument
◆ QQuickPdfSelection
◆ boundingRectangle
QRectF QPdfSelection::boundingRectangle |
|
read |
This property holds the overall bounding rectangle (convex hull) around \l bounds.
Definition at line 23 of file qpdfselection.h.
◆ bounds
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 \l {https://en.wikipedia.org/wiki/Point_(typography)}{points}.
- Note
- For now, the polygons returned from \l QPdfDocument::getSelection() are always rectangles; but in the future it may be possible to represent more complex regions.
Definition at line 22 of file qpdfselection.h.
◆ endIndex
int QPdfSelection::endIndex |
|
read |
This property holds the index at the end of \l text within the full text on the page.
Definition at line 26 of file qpdfselection.h.
◆ startIndex
int QPdfSelection::startIndex |
|
read |
This property holds the index at the beginning of \l text within the full text on the page.
Definition at line 25 of file qpdfselection.h.
◆ text
This property holds the selected text.
Definition at line 24 of file qpdfselection.h.
◆ valid
bool QPdfSelection::valid |
|
read |
This property holds whether the selection is valid.
Definition at line 21 of file qpdfselection.h.
The documentation for this class was generated from the following files: