Hi,<br>According to the doc, <br>1,&quot;self.update()&quot; in the CannonField.setAngle() should be &quot;self.update(self.cannonRect())&quot;<br clear="all">2,&quot;esult.moveBottomLeft(self.rect().bottomLect())&quot; in CannonField.cannonRect() should be &quot;result.moveBottomLeft(self.rect().bottomLeft())&quot;<br>
<br>And here comes the questions:<br>I think that creating a QtCore.QRect and moving it every time repaint the widget is not so good. So I move the code to __init__ and make cannonRect a local variable rather than a function. But the cannon doesn&#39;t move i.e, the widget doen&#39;t get repainted correctly. Any hint there?<br>
<br>-- <br>Cheers,<br>Grissiom<br>