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

PdfLinkDelegate QML Type

A component to decorate hyperlinks on a PDF page.

This type was introduced in Qt 5.14.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

PdfLinkDelegate QML Type

  • Import Statement: import QtQuick.Pdf

  • Since:: Qt 5.14

  • Inherits:: Item

Detailed Description

PdfLinkDelegate provides the component that QML-based PDF viewers instantiate on top of each hyperlink that is found on each PDF page.

This component does not provide any visual decoration, because often the hyperlinks will already be formatted in a distinctive way; but when the mouse cursor hovers, it changes to Qt::PointingHandCursor, and a tooltip appears after a delay. Clicking emits the goToLocation() signal if the link is internal, or calls Qt.openUrlExternally() if the link contains a URL.

See Also

Signal Documentation

 

contextMenuRequested(link)

Emitted on mouse right-click or touch long-press. The link argument is an instance of QPdfLink with information about the hyperlink.

The corresponding handler is onContextMenuRequested.

tapped(link)

Emitted on mouse click or touch tap. The link argument is an instance of QPdfLink with information about the hyperlink.

The corresponding handler is onTapped.

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