title: PyQt5: QGraphicsScene: Mouse item with click and drop (without holding press)
body: <p>The default <code>mouseEvent</code> function in <code>QGraphicsScene</code> allows to move the Item by <strong>press-and-hold, move, and release</strong>. I am trying to overwrite the <code>QGraphicsScene mouseEvent()</code> function to accomplish the same movement with <strong>press-and-release-once (pick item), move (without holding press), press-and-release-twice (drop item)</strong>. I though it would be as simple as:</p>
  <pre><code>self.moving = False
  def mousePressEvent(self, event):
      if event.button() == Qt.LeftButton:
          if self.moving == False: # first click, pick up, start moving
              super().mousePressEvent(event)
              self.moving = True
          else:                    # second click, drop, end moving item
              super().mouseReleaseEvent(event)
              self.moving = False    
  
  def mouseMoveEvent(self, event):      
      if self.moving == True:
          super().mousePressEvent(event)
          super().mouseMoveEvent(event)
  
  def mouseReleaseEvent(self, event):      
      pass
  </code></pre>
  <p>I am not able to pick up and move the item so far, does anyone spot anything wrong? Also, where can I find the original implementation of the <code>QGraphicsScene mouseEvent function</code>?</p>
  <p>Thank you!</p>