[PyQt] PyQt speed.

Vadim Gutnik gutnik at gmail.com
Sun Nov 11 23:09:06 GMT 2007


On Nov 9, 2007 6:49 PM, David Boddie <david at boddie.org.uk> wrote:
>
> Not at all. It would appear that you've written an example that leaves
> pretty much all the processing to the underlying framework.

I see. I didn't know if there's some slowdown that comes from having
to interpret python classes instead of C++ classes, but if there is,
this example isn't limited by that. Thank you for checking.

> Then, I searched the Task Tracker for similar reports to yours and found
> this one:
>
> http://trolltech.com/developer/task-tracker/index_html?method=entry&id=144901

Oh! That's a resource I didn't know about.

> So, I built it against Qt 4.3 - still the same problem.
>
> I followed the advice given in the task description. The resulting
> performance is _much_ better - you have to see it to believe it. :-)

Wow. Thank you. That's much
better. setViewportUpdateMode(QGraphicsView.SmartViewportUpdate)
helped immensely. Thank you!

> If you can, you should use PyQt 4.3.1 with Qt 4.3 so that you can take
> advantage of the improved performance and configurability of QGraphicsView.

I seem to be using a late-enough version of PyQt that this
worked. Thank you! That was the best answer I could have expected. :)

	Vadim


More information about the PyQt mailing list