qt 实现全屏

 this->showFullScreen();

this->setStatusBar(0);

     //this->setWindowFlags(Qt::CustomizeWindowHint);
      // this->setWindowFlags(Qt::FramelessWindowHint);
       //this->setWindowFlags( Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint );
         //this->resize( QApplication::desktop()->size() );
         //this->setFocusPolicy( Qt::StrongFocus );
         //this->setAttribute(Qt::WA_QuitOnClose, true);
         //this->setWindowFlags(Qt::Popup);
         //this->setFocus();

原文地址:https://www.cnblogs.com/zzxap/p/2175718.html