7#include <QGuiApplication>
38 std::move(contextBefore),
39 std::move(contextAfter)))
157 return QPdfLinkModel::tr(
"Page %1 location %2, %3 zoom %4")
171#ifndef QT_NO_DEBUG_STREAM
176 dbg <<
"QPdfLink(page=" << link.
page()
178 <<
" zoom=" << link.
zoom()
189#include "moc_qpdflink.cpp"
void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
Mode
\keyword clipboard mode
static QClipboard * clipboard()
Returns the object for interacting with the clipboard.
The QPdfLink class defines a link between a region on a page (such as a hyperlink or a search result)...
Q_PDF_EXPORT QPdfLink()
Constructs an invalid Destination.
QUrl url
This property holds the destination URL if the link is an external hyperlink; otherwise,...
Q_PDF_EXPORT Q_INVOKABLE void copyToClipboard(QClipboard::Mode mode=QClipboard::Clipboard) const
Copies the toString() representation of the link to the \l {QGuiApplication::clipboard()}{system clip...
QString contextAfter
This property holds adjacent text found on the page after the search string.
qreal zoom
This property holds the suggested magnification level, where 1.0 means default scale (1 pixel = 1 poi...
QPointF location
This property holds the location on the \l page, in units of points.
Q_PDF_EXPORT QPdfLink & operator=(const QPdfLink &other)
Q_PDF_EXPORT Q_INVOKABLE QString toString() const
Returns a translated representation for display.
int page
This property holds the page number.
QString contextBefore
This property holds adjacent text found on the page before the search string.
QList< QRectF > rectangles
This property holds the region (set of rectangles) occupied by the link or search result on the page ...
Q_PDF_EXPORT bool isValid() const
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QPdfLink &link)