[PyQt] QGraphicsScene/Item/View optimisation

Frédéric frederic.mantegazza at gbiloba.org
Wed Feb 4 08:30:27 GMT 2009


Hello,

I draw some items (mainly rectangles or ellispes) on a scene, and it
seems to take a lot of resources, even with a few objects (say 10).

The main issue is on the maemo plateform, as Nokia N8x0 devices are not
that powerfull. Just drawing the initial scene takes a few seconds.

Are there some optimisation tips I should know? Or is there a big issue
in my design? The code is here:

http://trac.gbiloba.org/papywizard/browser/trunk/papywizard/view/shootingScene.py
http://trac.gbiloba.org/papywizard/browser/trunk/papywizard/view/pictureItem.py

Thanks,


--
   Frédéric



More information about the PyQt mailing list