Re: [Interest] Return null QSGNode from updatePaintNode to erase previously drawn things

2016-05-11 Thread Данил Патрушев
Ahh, I didn't realize I had to delete the paint node myself, I thought that SG would take care of it by looking at the return value of null. Anyway. Thank you so much for a quick reply! ___ Interest mailing list Interest@qt-project.org http://lists.qt-pro

Re: [Interest] Return null QSGNode from updatePaintNode to erase previously drawn things

2016-05-11 Thread Gunnar Sletta
Sounds perfectly normal :) The node you return from updatePaintNode is the visual representation of that given item, excluding that item's children. Returning null for it will remove that item from the scene (and you should delete the node since the SG no longer holds a reference to it or any o

[Interest] Return null QSGNode from updatePaintNode to erase previously drawn things

2016-05-11 Thread Данил Патрушев
Hi all. I have a quick item which does some custom drawing and has a few visible child items. At some point I want to erase all the stuff drawn by this item, which I thought I could by returning a null qsgnode from updatePaintNode, but the stuff remains visible. I have a few ideas how to work aroun