修复应用关闭后从托盘处点击出来后hover状态异常的问题

This commit is contained in:
韩品龙 2024-01-15 14:36:15 +08:00
parent a4c5c3f3fe
commit d1469cf348
1 changed files with 3 additions and 0 deletions

View File

@ -8959,7 +8959,10 @@ bool QWidget::event(QEvent *event)
for (int i = 0; i < childList.size(); ++i) { for (int i = 0; i < childList.size(); ++i) {
QWidget *w = qobject_cast<QWidget *>(childList.at(i)); QWidget *w = qobject_cast<QWidget *>(childList.at(i));
if (w && w->isVisible() && !w->isWindow()) if (w && w->isVisible() && !w->isWindow())
{
QCoreApplication::sendEvent(w, event); QCoreApplication::sendEvent(w, event);
QCoreApplication::sendEvent(w, new QEvent(QEvent::Leave));
}
} }
break; } break; }