[Interest] QPixmapCache Simple Usage Fails

Richard Moore rich at kde.org
Sun May 18 23:01:53 CEST 2014


On 18 May 2014 21:22, Durango <durango.list at gmail.com> 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 check that the way you're creating the pixmaps isn't
causing them to reference an image buffer that no longer exists.

Cheers

Rich.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140518/d30f75d5/attachment.html>


More information about the Interest mailing list