7#include <QtPdf/qtpdfglobal.h>
9#include <QtCore/qobject.h>
10#include <QtCore/qshareddata.h>
11#include <QtGui/qclipboard.h>
12#include <QtGui/qpolygon.h>
34 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(
QPdfSelection)
38 Q_PDF_EXPORT
bool isValid()
const;
39 Q_PDF_EXPORT QList<QPolygonF>
bounds()
const;
44#if QT_CONFIG(clipboard)
56 QExplicitlySharedDataPointer<QPdfSelectionPrivate>
d;
Mode
\keyword clipboard mode
void swap(QExplicitlySharedDataPointer &other) noexcept
Swap this instance's explicitly shared data pointer with the explicitly shared data pointer in other.
The QPdfDocument class loads a PDF document and renders pages from it.
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document,...
void swap(QPdfSelection &other) noexcept
int startIndex
This property holds the index at the beginning of \l text within the full text on the page.
QString text
This property holds the selected text.
QList< QPolygonF > bounds
This property holds a set of regions that the selected text occupies on the page, represented as poly...
QRectF boundingRectangle
This property holds the overall bounding rectangle (convex hull) around \l bounds.
Q_PDF_EXPORT bool isValid() const
int endIndex
This property holds the index at the end of \l text within the full text on the page.
bool valid
This property holds whether the selection is valid.
The QPolygonF class provides a list of points using floating point precision.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static const QRectF boundingRect(const QPointF *points, int pointCount)