title: QGraphicsItem paint delay
body: <p><a href="https://i.stack.imgur.com/3vDDX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3vDDX.png" alt="enter image description here"></a></p>
  
  <p>What could be the possible reason for this? When i zoom in the QGraphicsView and move the QGraphicsItem, I get this weird result. It does update if I zoom or pan the View again or if I focus on other widgets. Im using PySide. And the painter function is this</p>
  
  <pre><code>def paint(self, painter, option, widget):
      if self.isSelected():
          brush = self.highlight_brush
          pen = self.highlight_pen
      else:
          brush = self.dormant_brush
          pen = self.dormant_pen
  
      painter.setBrush(brush)
      painter.setPen(pen)
  
      painter.drawRect(0, 0, 100, 100)
  </code></pre>
  
  <p>Why does this happen even for this basic paint event? This problem is not seen if there is no Pen. If I increase the pen width, this issue is disturbingly visible.</p>