[Interest] QGraphicsScene::addPixmap() pointer ownership

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Tue Aug 8 20:19:46 CEST 2017


The QGraphicsScene owns all the QGraphicsItem you add to it.



-------
Jean-Michaël Celerier
http://www.jcelerier.name

On Tue, Aug 8, 2017 at 7:24 PM, Nikos Chantziaras <realnc at gmail.com> wrote:

> When adding a pixmap to a QGraphicsScene with:
>
>   pixmapItem = scene.addPixmap(pixmap);
>
> who owns pixmapItem? Do I need to delete it? Does the scene delete it?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170808/0c8afb0b/attachment.html>


More information about the Interest mailing list