title: Resizing Layout equal to MainWindow
body: <p>When I run my program it will display all content properly, and when I resizing the main window, the layout along with all associated widgets remain fixed, rather than resizing with the main window. I used to increase my all widget and listWidget respect to window computer resolution size but still this not one work properly.
  I used this one code finding the system height and width.</p>
  
  <pre><code>    QWidget widget;
      widget.resize(widget.width(), widget.minimumHeight());
      QRect rec = QApplication::desktop()-&gt;screenGeometry();
      int h = rec.height();
      int w = rec.width();
      // Increasing the listwidget size
      ui-&gt;listWidget-&gt;setFixedHeight(h);
      ui-&gt;listWidget-&gt;setFixedWidth(w);
     //increasing the button size
      ui-&gt;pushButton-&gt;setFixedHeight(h0.2);
      ui-&gt;pushButton-&gt;setFixedWidth(w0.2);
  </code></pre>
  
  <p>At this <a href="https://imgur.com/a/4mwUkhn" rel="nofollow noreferrer">link</a> you will find two screenshots that illustrate my problem.</p>
  
  <p>Please resolve to solve my problem. Thanks very much in advance.</p>