日志
-
2016-09-07 09:39
-
QApplication::notify
阅读全文»分类:默认分类|回复:0|浏览:1397
#if QT_VERSION >= 0x050000
if (QEvent::Show == pEvent->type())
{
if (pObject->isWidgetType())
{
QWidget* pWidget = qobject_cast<QWidget*>(pObject);
if ((NULL != pWidget) && !pWidget->testAttribute(Qt::WA_Mapped))
{
pWidget->setAttribute(Qt::WA_Mapped);
}
}
}
#endif