Try setting the clipping rectangle on the QPaintContext rather than the painter. You may find the layout engine can make a smarter choice of how to paint.
Try setting the clipping rectangle on the QPaintContext rather than the painter. You may find the layout engine can make a smarter choice of how to paint.
DoTheEvo (6th April 2015)
Another potential slow down can be save/restore on a painter.
It is often faster to just "undo" the changes, e.g. translate back to "undo" the translation.
Cheers,
_
DoTheEvo (6th April 2015)
THANK YOU ALL FOR REPLYING!
It was my bad at the very beginning
I was doing setItemDelegate() on every keypress instead of just putting it there right after creating the listview
All is well
Bookmarks