title: custom QWidget layout problems
body: <p>I'm pretty new to QT and I've made my first custom QWidget subclass...it all works well, until I try adding some labels to it. They all get squashed into the top corner.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>   ARView::ARView(QWidget *parent, const char *name) {
  deviceLBL = new QLabel(this);
  targetLBL = new QLabel(this);
  deviceHeadingLBL = new QLabel(this);
  targetHeadingLBL = new QLabel(this);
  distanceLBL = new QLabel(this);
  
  QVBoxLayout *layout = new QVBoxLayout();
  
  layout-&gt;addWidget(deviceLBL);
  layout-&gt;addWidget(targetLBL);
  layout-&gt;addWidget(deviceHeadingLBL);
  layout-&gt;addWidget(targetHeadingLBL);
  layout-&gt;addWidget(distanceLBL);
  
  this-&gt;setLayout(layout);
  
  this-&gt;setupLocationUpdates();
  </code></pre>
  
  <p>}</p>
  
  <p>Does anyone know what I'm doing wrong? Why aren't all of these labels being layed out in a grid?
  Or, if they are - why isn't the grid using all my subclasse's available space?</p>
  
  <p>Cheers,</p>
  
  <p>James</p>