Skip to content
nucularmoo edited this page Mar 6, 2018 · 19 revisions

Parent-Child relationship

Explanation of the contents of a topic page @ Week 1 Topic 1

Back to Week 1

Objective: Qt memory management with object trees

Comment: Looks good already, no further comments at this point.

Beginner

  • What is a pointer?
  • What is a null pointer?
  • What is "on stack"?
  • What is "on heap"?

Intermediate

  • What is the object tree?
  • How construct/destruct object trees?
  • What happens when you create objects?
  • What happens when you delete objects?
  • What is the difference between creating objects on stack and on heap?
  • What is "the dangling pointer problem"?
  • Does the object tree solve "the dangling pointer problem"?
  • What happens to my pointers when I delete objects?

Expert


Course material content

The Object Tree

http://doc.qt.io/qt-5/objecttrees.html

Object and pointer persistence (??)

http://doc.qt.io/qt-5/objecttrees.html#construction-destruction-order-of-qobjects

The Dangling Pointer

https://stackoverflow.com/questions/17997228/what-is-a-dangling-pointer


Exhaustive reference material mentioned in this topic

Further reading topics/links:

Clone this wiki locally