From d1469cf3484c91c1a64c8d92433f239cd7f11d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=93=81=E9=BE=99?= Date: Mon, 15 Jan 2024 14:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=90=8E=E4=BB=8E=E6=89=98=E7=9B=98=E5=A4=84=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=87=BA=E6=9D=A5=E5=90=8Ehover=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/kernel/qwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index e9452002..e7f03bbc 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -8959,7 +8959,10 @@ bool QWidget::event(QEvent *event) for (int i = 0; i < childList.size(); ++i) { QWidget *w = qobject_cast(childList.at(i)); if (w && w->isVisible() && !w->isWindow()) + { QCoreApplication::sendEvent(w, event); + QCoreApplication::sendEvent(w, new QEvent(QEvent::Leave)); + } } break; }