title: Can't change size within layout
body: <p>Well, I have a text editor with a button above it... I want the text editor to be inside a layout so that it increases and decreases its size the the <code>QDialog</code>, but I don't want to do that same with the button, which, by the way, doesn't have the size that I want and can't change it. What can I do?</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>from PyQt4 import QtCore, QtGui
  import sys
  from PyQt4.QtCore import *
  from PyQt4.QtGui import *
  class TextEditorDlg(QDialog):
      def __init__(self, parent=None):
          QtGui.QDialog.__init__(self, parent)
          self.resize(500, 400)
          self.Grid = QtGui.QGridLayout(self)
          self.button = QtGui.QPushButton(self)
          self.Grid.addWidget(self.button, 0, 0)
          self.lineEdit = QtGui.QLineEdit(self)
          self.textEdit = QtGui.QTextEdit(self)
          self.Grid.addWidget(self.lineEdit, 1, 0)
          self.Grid.addWidget(self.textEdit, 2, 0)
  if __name__ == '__main__':
      app = QApplication(sys.argv)
      myapp = TextEditorDlg()
      myapp.show()
      sys.exit(app.exec_())
  </code></pre>
  
  <p><strong>See the problem now?</strong></p>