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

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to