title: Scrolling a Scroll Area in Qt
body: <p>I just have a Scroll Area widget that consists of several Qlabels .</p>
  <p>take a look at the situation:</p>
  <p><img src="https://i.stack.imgur.com/oifPV.png" alt="Widgets Inside Scroll Area" /></p>
  <p>I tried to to do the following but it didn't work out, its doesn't scroll ...</p>
  <pre><code>#include &quot;form1.h&quot;
  #include &quot;form.h&quot;
  #include &quot;ui_form.h&quot;
  #include &quot;ui_form1.h&quot;
  #include&lt;QScrollArea&gt;
  #include&lt;QScrollBar&gt;
  
  
  Form::Form(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::Form)
  {
      ui-&gt;setupUi(this);
      ui-&gt;scrollAreaWidgetContents-&gt;setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
      ui-&gt;scrollAreaWidgetContents-&gt;resize(ui-&gt;scrollArea-&gt;size().width() ,ui-&gt;scrollArea-&gt;size().height());
      ui-&gt;scrollArea-&gt;setWidgetResizable(true);
      ui-&gt;scrollArea-&gt;setWidget(ui-&gt;scrollAreaWidgetContents);
      ui-&gt;scrollAreaWidgetContents-&gt;adjustSize();
  
  }
  </code></pre>
  <p>Please Can you tell me what am doing wrong or what am not understanding ??
  please be specific , I would appreciate it...</p>