赞
踩
qt中子窗口最小化后再恢复显示,子窗口显示为大白框,看不到任何子控件。
暂不明确。
从网上找的,重写showEvent(QShowEvent *ev)函数,内容如下:
void MyWindow::showEvent(QShowEvent *ev)
{
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(ev);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。