title: Display QImage within main window
body: <p>I'm trying to display an image with Qt, I can get it to appear in a separate window, but I can't make it appear within the main window</p>
  
  <pre><code>Qt_first w;
  w.show();
  </code></pre>
  
  <p>This shows the window I designed in Qt designer, how do I access the Qlabel(Image_Lbel) I put within the QWidget (centralWidget) of that window?</p>
  
  <p>I generated a stripy image that shows correctly, just not within the correct window</p>
  
  <pre><code>QSize size = QSize(640,480);
  QImage::Format format = QImage::Format_ARGB32;
  QImage image = QImage::QImage(size, format);
  //generate
  QLabel myLabel;
  myLabel.setPixmap(QPixmap::fromImage(image));
  myLabel.show();
  </code></pre>
  
  <p>I get the feeling it could be I haven't included the files from the creator or the namespaces any suggestion much appreciated</p>