title: Custom QGraphicsItem mousePressEvent for single click works only when double click
body: <p>I have the following mousePressEvent, it's works fine but only when double clicking the mouse, I want it to work only when single click on the mouse button.</p>
  
  <pre><code>void MapNode::mousePressEvent(QGraphicsSceneMouseEvent *event)
  {
      isClicked *= -1;
      QGraphicsItem::mousePressEvent(event);
      update();
  }
  </code></pre>
  
  <p>Thanks</p>