Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Will dynamic destruction of QML element using destroy automatically clean up memory of its children also?
qttester5 last edited by
Will dynamic destruction of QML element using destroy automatically clean up memory of its children also? Or must I also call destroy on all its children first?
It is supposed clean up children. Did you face any problem ?
chrisadams last edited by
See http://qt-project.org/doc/qt-5.0/qtquick/qtquick-visualcanvas-topic.html#visual-parent for more information about this.
The short answer is that there are two different "parenting" concepts in QtQuick (object ownership parenting, and visual item parenting). In most cases, the visual item parent is also the object ownership parent, but there are cases where they can be different.