[Interest] QGraphicsScene::addPixmap() pointer ownership
realnc at gmail.com
Thu Aug 10 17:17:23 CEST 2017
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
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
> On Tue, Aug 8, 2017 at 7:24 PM, Nikos Chantziaras <realnc at gmail.com
> <mailto: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?
More information about the Interest