Qt maintains hierarchies of objects. For widgets (visible elements) these hierarchies represent the stacking order of the widgets themselves, for non-widgets they merely express "ownership" of objects. Qt deletes child objects together with their parent object. While this takes care of 90% of memory handling problems it also brings some challenges and leaves a few aspects open.
quindi per esempio, se istanzio un QWidget o QDialog, nel momento in cui vado a fare la delete di questi, viene automagicamente chiamata anche la delete della roba istanziata nello heap dentro al QWidget / QDialog?
Sul serio?