1.设置窗体无边框 this->setWindowFlags(Qt::Window|Qt::FramelessWindowHint);//设置窗体无边框 2. 窗口最大化 //窗口最大化 this->showMaximized();