PdfLinkDelegate QML Type
用于在 PDF 页面上装饰超链接的组件。更多
Import Statement: | import QtQuick.Pdf |
Inherits: |
信号
- contextMenuRequested(link)
- tapped(link)
详细描述
PdfLinkDelegate 提供了一个组件,基于 QML 的 PDF 阅读器会将其实例化到每个 PDF 页面上的每个超链接之上。
该组件不提供任何可视化装饰,因为通常超链接已经以独特的方式格式化;但当鼠标光标悬停时,它将变为Qt::PointingHandCursor ,并在延迟后出现一个工具提示。如果链接是内部链接,点击会发出 goToLocation() 信号;如果链接包含 URL,则会调用 Qt.openUrlExternally()。
另请参阅 PdfPageView 、PdfScrollablePageView 和PdfMultiPageView 。
信号文档
contextMenuRequested(link) |
在鼠标右键或触摸长按时发出。link 参数是包含超链接信息的QPdfLink 实例。
注: 相应的处理程序是onContextMenuRequested
。
tapped(link) |
鼠标点击或触摸点击时发出。link 参数是QPdfLink 的一个实例,包含有关超链接的信息。
注: 相应的处理程序是onTapped
。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.