qt:heap_versus_stack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
qt:heap_versus_stack [2010/12/08 22:14] – mithat | qt:heap_versus_stack [2010/12/08 22:16] – [Long answer] mithat | ||
---|---|---|---|
Line 14: | Line 14: | ||
For this to work, there are two requirements: | For this to work, there are two requirements: | ||
- | - All child objects must be created on the heap; however, the root itself may be on the stack. In other words, child objects that you intend to place in the tree must be created dynamically | + | - All child objects must be created on the heap; however, the root itself may be on the stack. In other words, child objects that you intend to place in the tree must be created dynamically using the '' |
- Child objects must explicitly be made children of their parents (i.e., they must be // | - Child objects must explicitly be made children of their parents (i.e., they must be // | ||
qt/heap_versus_stack.txt · Last modified: 2010/12/08 22:59 by mithat