Re: [Interest] QGraphicsScene::addPixmap() pointer ownership

2017-08-10 Thread Nikos Chantziaras
Yep, thanks. And it also turns out that they can be deleted anyway and they seem to unregister themselves from the scene, so no double-deletion issues. On 08/08/17 21:19, Jean-Michaël Celerier wrote: The QGraphicsScene owns all the QGraphicsItem you add to it. --- Jean-Michaël Celerier h

Re: [Interest] QGraphicsScene::addPixmap() pointer ownership

2017-08-08 Thread Jean-Michaël Celerier
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 wrote: > When adding a pixmap to a QGraphicsScene with: > > pixmapItem = scene.addPixmap(pixmap); > > who owns pixmapItem? D