title: How to make QWebEngineView go fullscreen [Qt 5.8]
body: <p>I have the following code and I want to make my <code>QWebEngineView</code> (Qt 5.8) to go full screen. My <code>WebView</code> class is under a <code>QTabWidget</code> so it's just fill up the tab not entire screen. How can I make it go fullscreen?</p>
  
  <pre><code>class WebView:public QObject{
      void acceptFullScreen(QWebEngineFullScreenRequest request){
          request.accept();
      }
  
  public:
      char* home_page;
      QWebEngineView* view=new QWebEngineView();
      WebView(char* page=(char*)"file:///home/tarptaeya/Desktop/Crusta_Prototype_python/about.html"){
          this-&gt;home_page=page;
          createWebView();
          this-&gt;view-&gt;settings()-&gt;setAttribute(QWebEngineSettings::FullScreenSupportEnabled,true);
          this-&gt;view-&gt;settings()-&gt;setAttribute(QWebEngineSettings::PluginsEnabled,true);
          this-&gt;view-&gt;settings()-&gt;setAttribute(QWebEngineSettings::JavascriptCanOpenWindows,true);
          connect(this-&gt;view-&gt;page(),&amp;QWebEnginePage::fullScreenRequested,this,&amp;WebView::acceptFullScreen);
      }
      void createWebView(){
          this-&gt;view-&gt;load(QUrl(this-&gt;home_page));
      }
  }
  </code></pre>