title: Using Qt To Build A Full Screen Layout
body: <p>I am trying to use qt along with the qt designer to create a simple full screen webview with a line edit and a button above to create a really simple browser.</p>
  
  <p>The problem is that the layout doesn't want to expand to fill all of the available space.  I seem to think that I am missing something really simple, but I just can't seem to figure it out.</p>
  
  <p>Here is an overview of my layout</p>
  
  <pre><code>&lt;MainWindow&gt;
      &lt;GridView&gt;
          &lt;VBoxLayout&gt;
              &lt;HBoxLayout&gt;            
                  &lt;lineEdit /&gt;&lt;PushButton /&gt; 
              &lt;/HBoxLayout&gt;
              &lt;WebView /&gt;
          &lt;/VBoxLayout&gt;
      &lt;/GridView&gt;
  &lt;/MainWindow&gt;
  </code></pre>
  
  <p>Here is the code on the MainWindow Class</p>
  
  <pre><code>MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent),
  ui(new Ui::MainWindow)
  {
  
      ui-&gt;setupUi(this);
      ui-&gt;lineEdit-&gt;showFullScreen();
      ui-&gt;pushButton-&gt;showFullScreen();
  
      ui-&gt;webView-&gt;load(QUrl("http://google.com"));
  
      ui-&gt;webView-&gt;showFullScreen();
  
   }
  </code></pre>
  
  <p>and here is the main code</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      MainWindow w;
      w.showMaximized();
      return a.exec();
  }
  </code></pre>
  
  <p>It comes out looking like this instead of the webview and lineedit filling the whole amount of space
  <img src="https://i.stack.imgur.com/L2Drn.png" alt="enter image description here"></p>
  
  <p>Is there anyway of doing this in Qt, I would have assumed that this was a standard thing to want to do.</p>
  
  <p>Many Thanks in advance!</p>