title: Image is not Displaying at center in QtForm
body: <p>Hi I am using QLabel to show an image in QtForm.
  My code goes like this </p>
  
  <pre><code>QVBoxLayout *layout = new QVBoxLayout;
  QHBoxLayout *hLayout = new QHBoxLayout;
  layout-&gt;setMargin(5);
  QLabel *imageLabel = new QLabel;
  QPixmap pixmap("/images/test.jpg");
  imageLabel-&gt;setPixmap(pixmap);
  imageLabel-&gt;setMask(pixmap.mask());
  imageLabel-&gt;setMinimumSize(160, 160);
  imageLabel-&gt;resize(500, 320);
  
  layout-&gt;addWidget(imageLabel,0,Qt::AlignTop | Qt::AlignCenter);
  hLayout-&gt;addItem(layout);
  
  widget-&gt;setLayout(hLayout);
  
  scrollArea-&gt;setWidget(widget);
  setCentralWidget(scrollArea);
  </code></pre>
  
  <p>but the image is displaying at the left corner can any one suggest me to bring the image to centre to the form</p>