Qt显示隐藏或被遮挡窗口

if (isMinimized())
{
  auto state = this->windowState();
  if (state.testFlag(Qt::WindowMaximized))
  {
    this->showMaximized();
  }
  else if (state.testFlag(Qt::WindowMaximized))
  {
    this->showFullScreen();
  }
  else
  {
    this->showNormal();
  }
}
else
{
  this->activateWindow();
  this->raise();
}

posted on 2022-10-11 15:59  OctoberKey  阅读(342)  评论(0)    收藏  举报

导航