From fd1a34045b09d9c7e927d814b87617c2424e68a8 Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Tue, 5 Feb 2019 15:07:24 +0100 Subject: Add a way to customize tooltips in WebEngineView Implement a tooltipRequested signal and a corresponding request class to expose tooltip information to the users. Task-number: QTBUG-59290 Change-Id: I4e31773c62a65d6f340aaa74237cb0076252cd5b Reviewed-by: Michal Klocek --- src/webengine/doc/src/webengineview_lgpl.qdoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/webengine/doc/src/webengineview_lgpl.qdoc') diff --git a/src/webengine/doc/src/webengineview_lgpl.qdoc b/src/webengine/doc/src/webengineview_lgpl.qdoc index a6f2af39e..3b375c532 100644 --- a/src/webengine/doc/src/webengineview_lgpl.qdoc +++ b/src/webengine/doc/src/webengineview_lgpl.qdoc @@ -1493,3 +1493,15 @@ \sa WebEngineClientCertificateSelection */ + +/*! + \qmlsignal WebEngineView::tooltipRequested(TooltipRequest request) + \since QtWebEngine 1.10 + + This signal is emitted when the web page wants to show a tooltip at + a specified position. + + \note Signal handlers need to call \c{request.accepted = true} to prevent a default tooltip from showing up. + + \sa TooltipRequest +*/ -- cgit v1.2.3