[Qt-interest] optimisation issue

Vincent PREVOST vincent.prevost.vp at gmail.com
Tue Aug 31 17:35:38 CEST 2010


Hello everyone.

I've a performance issue due to useless paint event.

I'm using a QGraphic scene and a QGraphic view in order to display a big
rectangle item.
Inside this item there is a lot of smaller rectangle item which are just
touching each other so than the first item is completely recovered.
I need to add new items which link several little one.
The problem is than when I add a new custom item the scene schedule an paint
event for each small recovered rectangle item which is normal but as they
are touching each other all the small item are also been update, ass the big
first item.

I've tried to set the ViewportUpdateMode flag of the view to
NoViewportUpdate but i didn't manage to order a update of the small
connected item and, as I set the flag back to MinimalViewportUpdate, there
is a update schedule for all my items which cause serious performance issue.

If someone have a idea how to solve it I'm really interested.

Thank you, Vincent Prevost
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100831/7138d8dd/attachment.html 


More information about the Qt-interest-old mailing list