path: root/src
diff options
authorFriedemann Kleint <>2016-08-31 09:41:12 +0200
committerFriedemann Kleint <>2016-09-23 13:57:25 +0000
commit7c18cb4f83c4907b40abc0bf40c1573b02243b57 (patch)
treedf11ed223974343f6aa5f4112a811ac5cf2388ad /src
parent90ad487d31effc2845c74f92cf4b101462eaa00d (diff)
QToolTip: Hide when close event is received
Hide the tooltip when a window is requested to close in addition to focus/activation change. This fixes the tooltip blocking the shutdown of a Qt Quick Controls application. Task-number: QTBUG-55523 Change-Id: I09d10fc162ce125075b03c534412b488974d12b9 Reviewed-by: J-P Nurmi <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp
index 51bf6e4684..2f99f8836a 100644
--- a/src/widgets/kernel/qtooltip.cpp
+++ b/src/widgets/kernel/qtooltip.cpp
@@ -336,6 +336,7 @@ bool QTipLabel::eventFilter(QObject *o, QEvent *e)
case QEvent::FocusIn:
case QEvent::FocusOut:
+ case QEvent::Close: // For QTBUG-55523 (QQC) specifically: Hide tooltip when windows are closed
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick: