summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginewidgets/api/qwebengineview.cpp')
-rw-r--r--src/webenginewidgets/api/qwebengineview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webenginewidgets/api/qwebengineview.cpp b/src/webenginewidgets/api/qwebengineview.cpp
index a2934905..3f3fdd7c 100644
--- a/src/webenginewidgets/api/qwebengineview.cpp
+++ b/src/webenginewidgets/api/qwebengineview.cpp
@@ -228,8 +228,11 @@ bool QWebEngineView::event(QEvent *ev)
if (ev->type() == QEvent::ContextMenu) {
ev->accept();
return true;
- } else if (ev->type() == QEvent::MetaCall)
- // Meta calls are not safe to forward to the page, as they could be widget specific (e.g. QWidgetPrivate::_q_showIfNotHidden)
+
+ // Meta calls are not safe to forward to the page, as they could be widget specific (e.g. QWidgetPrivate::_q_showIfNotHidden)
+ // ToolTip events need to be processed at the widget level for the tooltip to show.
+ } else if (ev->type() == QEvent::MetaCall
+ || ev->type() == QEvent::ToolTip)
return QWidget::event(ev);
if (d->page && d->page->event(ev))
return true;