不应该使用: this->showFullScreen(); 或 this->showMaximized();而应该使用: this->setGeometry(QApplication::desktop()->availableGeometry()); 转载于:https://www.cnblogs.com/granx/p/9563361.html