IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPdfLink Class

The QPdfLink class defines a link between a region on a page (such as a hyperlink or a search result) and a destination (page, location on the page, and zoom level at which to view it).

This class was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPdfLink Class

  • Header: QPdfLink

  • Since: Qt 6.4

Detailed Description

 

Property Documentation

 

[read-only] contextAfter : const QString

This property holds adjacent text found on the page after the search string. If the link is a hyperlink, this string is empty.

Access functions:

  • contextAfter() const

See Also

[read-only] contextBefore : const QString

This property holds adjacent text found on the page before the search string. If the link is a hyperlink, this string is empty.

Access functions:

  • contextBefore() const

See Also

[read-only] location : const QPointF

This property holds the location on the page, in units of points. If the link is a search result, it is the location where the result is found; if the link is a hyperlink, it is the destination location.

Access functions:

  • location() const

[read-only] page : const int

This property holds the page number. If the link is a search result, it is the page number on which the result is found; if the link is a hyperlink, it is the destination page number.

Access functions:

  • int page() const

[read-only] rectangles : const QList<QRectF>

This property holds the region (set of rectangles) occupied by the link or search result on the page where it was found. If the text wraps around to multiple lines on the page, there may be multiple rectangles:

Image non disponible

Access functions:

  • <> rectangles() const

See Also

[read-only] url : const QUrl

This property holds the destination URL if the link is an external hyperlink; otherwise, it's empty.

Access functions:

  • url() const

[read-only] valid : const bool

This property holds whether the link is valid.

Access functions:

  • bool isValid() const

[read-only] zoom : const qreal

This property holds the suggested magnification level, where 1.0 means default scale (1 pixel = 1 point). If the link is a search result, this value is not used.

Access functions:

  • qreal zoom() const

Member Function Documentation

 

QPdfLink::QPdfLink()

See Also

See also valid

void QPdfLink::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const

Copies the toString() representation of the link to the system clipboard depending on the mode given.

QString QPdfLink::toString() const

Returns a translated representation for display.

See Also

See also copyToClipboard()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+