一.全屏 1.1全屏 setWindowFlags(Qt::Window); showFullScreen(); 1.2退出全屏 setWindowFlags(Qt::Widget); showNormal();