Re: [Interest] QPixmapCache Simple Usage Fails

2014-05-18 Thread Richard Moore
On 18 May 2014 21:22, Durango wrote: > The image damage is what I would expect if the pixmap was pointing to free > memory. But QPixmapCache::insert is supposed to make a copy of the pixels, > right? > > No, QPixmap is implicitly shared, so it just keeps an instance of the QPixmap it caches. I'd

[Interest] QPixmapCache Simple Usage Fails

2014-05-18 Thread Durango
I’m having some difficulty with getting QPixmapCache to work for me. In my case I read images in a proprietary format, convert to QPixmap, then insert into the cache. When I later get a cache hit and retrieve the QPixmap, I get a damaged image, although of the right size and pixel format. The i