void MainWidget::showEvent(QShowEvent *event)
{
//解决自定义标题栏,恢复最小化时出现界面冻结问题
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(event);
}
void MainWidget::showEvent(QShowEvent *event)
{
//解决自定义标题栏,恢复最小化时出现界面冻结问题
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(event);
}