修复应用关闭后从托盘处点击出来后hover状态异常的问题
This commit is contained in:
parent
37c41b8ced
commit
d945502128
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue