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

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

View File

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