qt:heap_versus_stack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
qt:heap_versus_stack [2010/12/08 22:16] – [Long answer] mithat | qt:heap_versus_stack [2010/12/08 22:22] – [Heap or Stack?] mithat | ||
---|---|---|---|
Line 20: | Line 20: | ||
<code cpp-qt> | <code cpp-qt> | ||
QObjectSubclass theParent; | QObjectSubclass theParent; | ||
- | + | AnotherQObjectSubclass *foo; // pointer to a child | |
- | AnotherQObjectSubclass *foo; | + | foo = new AnotherQObjectSubclass( "bar", & |
- | foo = new AnotherQObjectSubclass( "foo", & | + | |
</ | </ | ||
qt/heap_versus_stack.txt · Last modified: 2010/12/08 22:59 by mithat