From fcf10579b3b278644cd7af3d1b94e1302f9d4fc9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 22 Apr 2018 14:12:52 +0200 Subject: [PATCH] hide tooltip on mouse press --- src/declarativeimports/core/tooltip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/declarativeimports/core/tooltip.cpp b/src/declarativeimports/core/tooltip.cpp index 64ba9155e..5e0c21b02 100644 --- a/src/declarativeimports/core/tooltip.cpp +++ b/src/declarativeimports/core/tooltip.cpp @@ -355,6 +355,9 @@ void ToolTip::hoverLeaveEvent(QHoverEvent *event) bool ToolTip::childMouseEventFilter(QQuickItem *item, QEvent *event) { + if (event->type() == QEvent::MouseButtonPress) { + hideToolTip(); + } return QQuickItem::childMouseEventFilter(item, event); }