title: Qt Designer: Unable to get scroll area to work properly
body: <p>I used Qt Designer to create a layout. Because everything kept jumping around, I used groupboxes and horizontal/vertical layouts. The different sections should be of fixed size.</p>
  
  <p>I have to make it all fit on a very small window... so I have to add all my groups into a ScrollArea.</p>
  
  <p>I have been trying to make it work... to make it show the scroll bars. Resizing it did not have any effect. </p>
  
  <p>I read that I must apply a layout - I had a very hard time applying it.</p>
  
  <p>I chose the grid layout - with group boxes delimiting the areas that must remain fixed.</p>
  
  <p>Still resizing the scroll area either gave me no scroll bars, or resized the contents of my group boxes - covering up qgraphicviews and buttons, even though my thought was that the contents have to be shown...</p>
  
  <p>I finally made it all work - with scroll bars - once I made every single groupbox of fixed size.</p>
  
  <p>So - right now - I have </p>
  
  <pre><code> Window    ---&gt; QWidget (sizePolicy (Preferred, Preferred, 0, 0))
     scrollArea    ---&gt; QScrollArea (sizePolicy (Preferred, Preferred, 0, 0);
                                     verticalScrollBarPolicy: ScrollBarsAsNeeded, same with horiz)
                                     widgetResizable: checked)
      scrollAreaWidgetContents   ---&gt; QWidget  (layout: grid layout; 
                                      sizePolicy (Preferred, Preferred, 0, 0))
        grp1    ---&gt; QgroupBox (sizePolicy (Fixed, Fixed, 0, 0))
          contents
        grp2    ---&gt; QgroupBox (sizePolicy (Fixed, Fixed, 0, 0))
          contents
        ....
  </code></pre>
  
  <p>Still have a problem: I can resize the scroll area in the Designer, and set it to the size I will need. But even though the size is "Preferred" not "Fixed", once the program is running I can not resize the scroll area.</p>
  
  <p>What I think the normal behavior should be: I should start with whatever the scroll area is, and hopefully I can set the window size to match the scroll area.</p>
  
  <p>If I resize the window, the scroll area should follow.</p>
  
  <p>What I see happening: The scroll area is of fixed size, and the window can be resized (but with empty area outside scroll area).</p>
  
  <p>How can I make the scroll area still resize (and match the window, since it is the only object inside it) ?</p>