title: Qt alignment in QGridLayout eliminates the resizing of its elements
body: <p>Ok, so basically I have a simple table with a QWidget and two buttons as shown below:</p>
  
  <pre><code>QGridLayout *layout = new QGridLayout;
  layout-&gt;addWidget(viewcontainer,0,0,1,2);
  layout-&gt;addWidget(reset,1,0);
  layout-&gt;addWidget(done,1,1);
  </code></pre>
  
  <p>This is basically what I want, where "reset" and "done" are buttons. Essentially it's a QWidget, viewcontainer, which resizes as the window size is changed by the user while the buttons' heights remains the same. But, the default for the gridlayout is to align the contents to the left. If I change this with:</p>
  
  <pre><code>layout-&gt;addWidget(viewcontainer,0,0,1,2, Qt::AlignCenter);
  </code></pre>
  
  <p>It does sort of what I want, but the graphicsscene no longer resizes (remains a small constant size). I'd like to retain the resizing while just aligning the widget to the center. Thanks.</p>