title: How to move a set of buttons in Qt?
body: <p>Currently I have a set of buttons in a QVBoxLayout which is inside a QHBoxLayout.</p>
  
  <p>Is there a way to move these according to where my mouse is? </p>
  
  <p>My current code is like this:</p>
  
  <pre><code>    self.button1 = QPushButton()
      self.button1.setText("button A")
  
      self.button2 = QPushButton()
      self.button2.setText("button B")
  
      vbox = QVBoxLayout(self.canvas)
      vbox.addStretch(1)
      vbox.addWidget(self.button1)
      vbox.addWidget(self.button2)
  
      hbox = QHBoxLayout(self.window)
      hbox.addStretch(1)
      hbox.addLayout(vbox)"
  </code></pre>