[PyQt] PyQt speed.

David Boddie david at boddie.org.uk
Sat Nov 10 16:49:14 GMT 2007


On Saturday 10 November 2007 16:23, Giovanni Bajo wrote:
> On 11/10/2007 3:49 AM, David Boddie wrote:

> > I followed the advice given in the task description. The resulting
> > performance is _much_ better - you have to see it to believe it. :-)
>
> Can you post the code, even if C++? It will be useful for future posters :)

The change should work just as well with PyQt:

  self.view.setViewportUpdateMode(QGraphicsView.SmartViewportUpdate)

My quick C++ port of the code is available here:

  http://chaos.troll.no/~dboddie/Python/GraphicsView/mygui.zip

David



More information about the PyQt mailing list