title: Resizing widgets in PyQt4
body: <p>I have created a main window using Qt designer that has a tabwidget in it. My problem is that when the window is maximized, the tabwidget remains its original size - thus leaving a lot of grey space to its right.</p>
  
  <p>I would like for the main window to always be maximized, so how can I resize the tabwidget to occupy more space? What can I add to the following code to achieve this?</p>
  
  <pre><code>self.tabWidget = QtGui.QTabWidget(self.centralwidget)
  self.tabWidget.setEnabled(True)
  self.tabWidget.setGeometry(QtCore.QRect(20, 40, 601, 501))
  self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
  self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
  </code></pre>