title: QTextEdit is too big?
body: <p>I can't figure out why my QTextEdit is so big despite my having inserted it without stretch.  I just want it to be one line.</p>
  
  <pre><code>    self.widget = QWidget()
      vbox = QVBoxLayout()
      vbox.addWidget(self.ppd_widget, 1)  # this widget is big, and I'm pretty sure it stretches. 
  
      hbox = QHBoxLayout()
      vbox.addLayout(hbox, 0)
  
      self.n_button = QPushButton("&amp;New training example")
      self.connect(self.n_button, SIGNAL('clicked()'), self.on_new_example)
      self.i_button = QPushButton("&amp;Infer")
      self.connect(self.i_button, SIGNAL('clicked()'), self.on_infer)
      self.t_button = QPushButton("&amp;Train")
      self.connect(self.t_button, SIGNAL('clicked()'), self.on_train)
  
      hbox.addWidget(QLabel("Training example: "), 0)
      self.example_number = QTextEdit()
      self.example_number.setLineWrapMode(0)#QPlainTextEdit.NoWrap)
      hbox.addWidget(self.example_number, 0)
  
      hbox.addWidget(self.n_button, 0)
      hbox.addWidget(self.i_button, 0)
      hbox.addWidget(self.t_button, 0)
      hbox.addSpacing(1)
  </code></pre>