I just made a new discovery!
While surfing on the net I stumbled upon QPixmapCache. While thinking it was the solution to my issue, i set it up.
Unfortunately the issue still remains, but i discovered a symptom.
To be sure i setup the caching correctly i made it print "from cache", "new image" depending on if the image was fetched from the cache, or was created anew.
This showed some interesting results. On start it printed "new image" about 15 times as expected. I Expected 15 times because i set the limit in the fetchMore
method to 15.
Then i try moving the mouse inside the ListView, without scrolling, just moving the mouse around abit. This made the console go wild with alot of mixed messages of
"from cache" and "new image", which about 60-70% of the messages were "new image". With this i think i finally narrowed down the cause of why the gui is lagging.
It suggests that somehow the view is not only painting the needed (visible) images, but everything when you move your mouse inside the view.
This however hasn't solved my problem, so please don't think that i still don't need help. I just wanted to give an update on what i have found.
Bookmarks