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
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?
--
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 python_inside_m...@googlegroups.com.
To post to this group, send email to python_in...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/KO-lFG2GYMY/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
Thank Justin :3Here's my work that i had posted earlier . It's contain script for the GUI, ai file, icons...... You can find the setup for QGraphicsView and QGraphicsScene in GraphicsModule.py . Setting for QGraphicsItem inside NodeModule and skip all the rest :3and use this to call it up
from Lib import GraphicsModule
GraphicsModule.showUi()
People have mentioned that they can be slow. You could also try replacing my pixmap approach with toggling the cache mode from device coordinate to item coordinate during drag, and back to device coordinate again. That does a similar thing where it caches it once in an internal pixmap cache.

No problem!
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/KO-lFG2GYMY/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
Don't create a painter. Look at the arguments. It passes you a shared painter.