6#include <QGuiApplication>
11
12
13
14
15
16
17
18
19
22
23
24
25
26QPdfSelection::QPdfSelection()
27 : d(
new QPdfSelectionPrivate())
32
33
34
35
36
37QPdfSelection::QPdfSelection(
const QString &text, QList<QPolygonF> bounds, QRectF boundingRect,
int startIndex,
int endIndex)
38 : d(
new QPdfSelectionPrivate(text, bounds, boundingRect, startIndex, endIndex))
53
54
55
56
59 return !d->bounds.isEmpty();
63
64
65
66
67
68
69
70
71
72
73
80
81
82
83
90
91
92
93
96 return d->boundingRect;
100
101
102
103
106 return d->startIndex;
110
111
112
113
119#if QT_CONFIG(clipboard)
121
122
123
124void QPdfSelection::copyToClipboard(QClipboard::Mode mode)
const
126 QGuiApplication::clipboard()->setText(d->text, mode);
132#include "moc_qpdfselection.cpp"
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document,...
Q_PDF_EXPORT int startIndex() const
Q_PDF_EXPORT int endIndex() const