title: QScrollArea won't scroll
body: <p>I am trying to put a QtableWidget inside a QScrollArea (only one widget) to be able to scroll it vertically and horizontaly (I have reasons not to use scrollbars in Qtablewidget ). However, no scrollbar appears even though the tableWidget can’t fit inside the window so I set <code>QtCore.Qt.ScrollBarAlwaysOn</code>, and now they are there but they are gray and still I can't scroll.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>class Table(QtGui.QDialog):
      def __init__(self, parent=None):
          super(Table, self).__init__(parent)
          layout = QtGui.QGridLayout() 
          tableWidget = QtGui.QTableWidget()
          #.... set up and populate tableWidget here 1000rows-10col ....
          myScrollArea = QtGui.QScrollArea()
          myScrollArea.setWidgetResizable(True)
          myScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
          myScrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
          myScrollArea.setWidget(tableWidget)
          layout.addWidget(myScrollArea)
          self.setLayout(layout)
          self.setMinimumSize(1000, 700)
  </code></pre>
  
  <p>I am begginer with PyQt and I don't really understand layouts and containers, so I can't figure out what I'm doing wrong. Please point me in right direction, help would be appreciated.</p>