[poppler] QT4, API documentation

Stefan Kebekus kebekus at kde.org
Fri Dec 2 04:15:46 PST 2005

On Wednesday 30 November 2005 22:22, Wilfried Huss wrote:

> >From the Qt documentation:
>   "The QPixmap class uses implicit sharing, so you can pass QPixmap objects
> around by value."
> So returning pixmaps should not be a problem.

Yes, QPixmap is internally little other than a pointer to an internal 
structure that has a usage count ---QT itself passes QPixmaps as arguments 
all the time. If you look at the code you'll see that we do the double 
copying that Albert mentioned anyway.


Universität zu Köln
Mathematisches Institut
Weyertal 86-90
50931  Köln / Germany

Phone: +49 (0)221 470-2890

Maintainer of KDVI


More information about the poppler mailing list