title: Draggable window with pyqt4
body: <p>just a simple question: I'm using pyqt4 to render a simple window. Here's the code, I post the whole thing so it easier to explain.</p>
  
  <pre><code>from PyQt4 import QtGui, QtCore, Qt
  import time
  import math
  
  class FenixGui(QtGui.QWidget):
  
      def __init__(self):
              super(FenixGui, self).__init__()
  
          # setting layout type
          hboxlayout = QtGui.QHBoxLayout(self)
          self.setLayout(hboxlayout)
  
          # hiding title bar
          self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
  
          # setting window size and position
          self.setGeometry(200, 200, 862, 560)
          self.setAttribute(Qt.Qt.WA_TranslucentBackground)
          self.setAutoFillBackground(False)
  
                  # creating background window label
          backgroundpixmap = QtGui.QPixmap("fenixbackground.png")
          self.background = QtGui.QLabel(self)
          self.background.setPixmap(backgroundpixmap)
          self.background.setGeometry(0, 0, 862, 560)
  
  
          # fenix logo
          logopixmap = QtGui.QPixmap("fenixlogo.png")
          self.logo = QtGui.QLabel(self)
          self.logo.setPixmap(logopixmap)
          self.logo.setGeometry(100, 100, 400, 150)
  
  def main():
  
      app = QtGui.QApplication([])
      exm = FenixGui()
      exm.show()
      app.exec_()
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Now, you see that I put a background label in my window. I would like that the window could be dragged around the screen by dragging this label. I mean: you click on the label, you drag the label, and the whole window comes around the screen. Is this possible? I accept non-elegant ways as well, because as you can see I hid the title bar so it would be impossible to drag the window if I don't make it draggable via the background label.</p>
  
  <p>Hope I explained my problem properly
  Thank you very much!!</p>
  
  <p>Matteo Monti    </p>