Nishant
23rd July 2010, 18:10
Hello all,
Well i am starting Qt with a book wherein i read that to allow object Trees(object hierarchies,i.e. child objects automatically get deleted when parent is deleted) the objects must be on heap.Why is it so;if they were on stack,using the stack pointer they could be deleted in the same way.
Well i am starting Qt with a book wherein i read that to allow object Trees(object hierarchies,i.e. child objects automatically get deleted when parent is deleted) the objects must be on heap.Why is it so;if they were on stack,using the stack pointer they could be deleted in the same way.