PdfLinkDelegate QML Type

PDFページ上のハイパーリンクを装飾するコンポーネント。詳細...

Import Statement: import QtQuick.Pdf
Inherits:

Item

シグナル

詳しい説明

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.