title: The inferior stopped because it received signal from the Operating System error on resizable scrollarea
body: <p>I have a QScrollArea inside QTabWidget and I have a QWidget beside my QTabWidget. I want QScrollArea to be resized when my main window is resized, so I have made this code like this:</p>
  
  <pre><code>void frmSummaryContact::on_btnAddNewContact_clicked()
  {
      MainWindow *mnWindow = qobject_cast&lt;MainWindow *&gt;(this-&gt;parent()-&gt;parent()-&gt;parent()-&gt;parent()-&gt;parent()-&gt;parent());
      QTabWidget *tbWidget = qobject_cast&lt;QTabWidget *&gt;(this-&gt;parent()-&gt;parent()-&gt;parent()-&gt;parent());
      frmDetailContact *frm = new frmDetailContact(mnWindow, "input", -1, mnWindow-&gt;rightPane());
  
      QScrollArea *scrlForm = new QScrollArea;
      scrlForm-&gt;setWidgetResizable(true);
      scrlForm-&gt;setWidget(frm);
  
      mnWindow-&gt;AddNewTab(tbWidget, scrlForm, "Add Contact");
  }
  </code></pre>
  
  <p>my QTabWidget is in different form, so I cast it with qobject_cast. Meanwhile in another form, I have a toogle button to hide QWidget so my QTabWidget get wider. So in that form I have a code like this:</p>
  
  <pre><code>void frmDetailContactToggle::on_btnSearch_clicked()
  {
      MainWindow *mnWindow = qobject_cast&lt;MainWindow *&gt;(this-&gt;parent()-&gt;parent()-&gt;parent());
      QLayoutItem *child;
  
      while ((child = mnWindow-&gt;rightPane()-&gt;layout()-&gt;takeAt(0)) != 0)
          child-&gt;widget()-&gt;setVisible(false);
  
      mnWindow-&gt;rightPane()-&gt;setVisible(false);
      QScrollArea *scrlContent = qobject_cast&lt;QScrollArea *&gt;(mnWindow-&gt;tabContentWidget()-&gt;currentWidget());
      scrlContent-&gt;setWidgetResizable(false);
      mnWindow-&gt;tabContentWidget()-&gt;setGeometry(mnWindow-&gt;tabContentWidget()-&gt;x(), mnWindow-&gt;tabContentWidget()-&gt;y(), m_width - mnWindow-&gt;tabContentWidget()-&gt;x() - 10, mnWindow-&gt;tabContentWidget()-&gt;height());
      scrlContent-&gt;setWidgetResizable(true);
      m_showRightPane = false;
  }
  </code></pre>
  
  <p>I have realized that I can't change the geometry when WidgetResizable is true. It showed "The inferior stopped because it received signal from the Operating System" error. So I thought about making it false, changing the geometry, and making it true again. But when I want to make it true, I encounter the same error. Could anyone please help me to solve my problem?</p>