title: displaying a text using QLabel ontop of another QLabel showing image has become such a pain
body: <p>Its simple thing, but I can't figure out why the overlay text is not displayed ontop of another QLabel, </p>
  
  <p>here is the code I have that sets the overlay label that has text onto another existing label displaying image</p>
  
  <pre><code>def _buildUi(self):
      self.label = QtGui.QLabel()
      self.overlayExifText = QtGui.QLabel(self.label)
      self.overlayExifText.setSizePolicy(QtGui.QSizePolicy.Ignored,
          QtGui.QSizePolicy.Ignored)
      self.overlayExifText.setStyleSheet("QLabel { color : blue; }")
      self.overlayExifText.setAlignment(QtCore.Qt.AlignTop)
      self.label.setBackgroundRole(QtGui.QPalette.Base)
      self.label.setSizePolicy(QtGui.QSizePolicy.Ignored,
          QtGui.QSizePolicy.Ignored)
      self.label.setAlignment(QtCore.Qt.AlignCenter)
      self.setCentralWidget(self.label)
  </code></pre>
  
  <p>here is the method that updates the text for current image</p>
  
  <pre><code>def showImageByPath(self, path):
      if path:
          self.overlayExifText.setText("\n".join(list(utils.getExifData((path)))))
          image = QtGui.QImage(path)
          pp = QtGui.QPixmap.fromImage(image)
          self.label.setPixmap(pp.scaled(
                  self.label.size(),
                  QtCore.Qt.KeepAspectRatio,
                  QtCore.Qt.SmoothTransformation))
  </code></pre>
  
  <p>only first letter of the text gets visible. also I tried setting some default text then it displays text with black background then that area also shows the little bit more of data the is yielded by the second method above. For full code have a look at this <a href="http://goo.gl/1AXsOe" rel="nofollow">repo</a></p>