PdfLinkDelegate QML Type

A component to decorate hyperlinks on a PDF page. 更多...

导入语句: import QtQuick.Pdf
继承:

Item

信号

详细描述

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.

另请参阅 PdfPageView , PdfScrollablePageView ,和 PdfMultiPageView .

信号文档编制

contextMenuRequested ( link )

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

注意: 相应处理程序是 onContextMenuRequested .

tapped ( link )

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

注意: 相应处理程序是 onTapped .