20 items is by no means "a lot". I have had scenes with thousands of items. It sounds like you might be doing something heavy in your paint events. Can you provide some more details about the items you are using? Snippet? On Apr 3, 2013 1:01 AM, "illunara" <[email protected]> wrote:
> Hi everybody > I'm working with QGraphicsView for a while, and after had finished some > basic stuff, i realized it gets slow down when there are a lot of items > (around 20, and it will freeze). > > When i set cacheMode in QGraphicsItem to ItemCoordinateCache which will > block the paintEvent, the performance is improve. So i guess that is the > cause. However, i don't know how to solve this yet :( > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
