What kind of configuration are you using? QListView+model? QListWidget? Custom?
If QListview, did you try enabling uniform sizes (http://doc.qt.io/qt-4.8/qlistview.html#uniformItemSizes-prop) and raise the batch size?
If you are still getting performance issues, you may need to experiment with a custom solution. QGraphicsScene is more performant when you need to display a lot of custom graphics at once that need to paint. You might need to look at porting the example Flow layout that comes with Qt from QWidget to QGraphics (something I had to do as well).
Is it Qt4 or Qt5? If the later then you may need to try this in QML.
Justin
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f70cc48e-15cb-4f2b-9b48-c308ca4541b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ya that is Qt4. Good to hear you got a speed increase from that setting!
Have you tried comparing the speed difference between the view/model and the widget approach? Depending on whether you have alot of custom logic in your model and view or not, maybe leaving more of the logic in C++ might end up faster for your use case? If your model is making a ton of calls to custom python data() methods it could be a performance hit over a default C++ implementation. And then there is always that QGraphics route which is more involved.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6c8fbd00-5204-47f1-9e89-54b9140124ac%40googlegroups.com.