title: Add HMI in QScrollArea, but ScrollArea won't scroll
body: <p>in my project, I have a QScrollArea in a QTabWidget , in this QTabWidget i had few IHM. I would like to put two IHM per line, and when you arrive at the end of QTabWidget , the scrollbar scroll .</p>
  
  <p>This is my class diagram :</p>
  
  <p><img src="https://i.stack.imgur.com/zAOVA.jpg" alt="Class diagram CU2"></p>
  
  <p>My code in MainWindow where i created the QScrollBar :</p>
  
  <pre><code>     //Here I create the QScrollArea
       QScrollArea *scrollArea = new QScrollArea();
       scrollArea-&gt;setWidgetResizable(true);
       scrollArea-&gt;setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
  
       //I had the QScrollBar in the Tab of my QTabWidget
       ui-&gt;tabWidget-&gt;addTab(scrollArea,"Plateau " + ControleSpecial.at(i).toElement().attribute("ID"));
  
       //I call my class Plateau (i'm french ^^)
       Plateau *plt = new Plateau(ui-&gt;tabWidget);
       plt-&gt;Rajouter(ControleSpecial.at(i),scrollArea,ui-&gt;InfoPlt,column,row);
       this-&gt;nPlateau.append(plt);
  </code></pre>
  
  <p>My class Analyse , where i had this IHM :
  <img src="https://i.stack.imgur.com/jUg1I.png" alt="IHM analyse"></p>
  
  <p>the code :</p>
  
  <pre><code>        {
                  //I create the layout and ScrollWidget
                  QGridLayout *layout = new QGridLayout;
                  QWidget *scrollwidget = new QWidget;
  
                  int row = 0;
                  int column = 0;
  
                  QDomNode Analyse;
  
                  for(int i=1;i&lt;plateau.childNodes().count()+1;++i)
                  {
  
                      Analyse = plateau.childNodes().at(i-1);
  
                      QString nomAnalyse = Analyse.toElement().attribute("Type");
                      vTypeAnalyse.append(nomAnalyse);
  
  
                      if(nomAnalyse == "Traction_Perpendiculaire")
                      {
                          Traction_Perpendiculaire* TP = new Traction_Perpendiculaire();
                          QGroupBox* analyse = TP-&gt;recuperationAnalyse();
  
                          //I add the analyse IHM in the layout
                          layout-&gt;addWidget(TP,row,column);
  
                          //I don't think my problem it's here
                          vButtonAnalyse.append(TP-&gt;recuperationButton());
                          connect(vButtonAnalyse[vButtonAnalyse.size()-1],SIGNAL(clicked()),this,SLOT(Recuperation()));
                          vButtonAnalyse[vButtonAnalyse.size()-1]-&gt;setAccessibleName(QString::number(i-1));
  
                          Eprouvette *blocEprouvette = new Eprouvette(analyse);
                          this-&gt;vbloceprouvette.append(blocEprouvette);
                          blocEprouvette-&gt;Rajouter(Analyse);
                      }
  
                      if(i%2 == 0)
                      {
                          column = 0;
                          row += 1;
                      }
                      else
                      {
                          column += 1;
                      }
                  }
  
                  //And I had the layout in scrollWidget and ScrollWidget in scrollArea
                  scrollwidget-&gt;setLayout(layout);
                  scrollArea-&gt;setWidget(scrollwidget);
                  //tab-&gt;widget(index)
              }
  </code></pre>
  
  <p>And i obtain that:</p>
  
  <p><img src="https://i.stack.imgur.com/S7zrJ.png" alt="enter image description here"></p>
  
  <p>So if you have any ideas , any ideas would be well come.
  Thank you in advance. (sorry for my bad english)</p>