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

Smart Pointers - QPointer, QScopedPointer

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

Back to Week 1

Objectives:

Comment: Memory management with Qt smart pointers

Comment: This is essentials of Qt. Standard smart pointers can be used, but we have corresponding Qt pointers. QScopedPointer is often used for non-Object member pointers. Destructors remains empty as with child/parent-based memory management. QPointer is useful, if the object pointer can delete the object at any time.

Beginner

  • What is a pointer (contnd..)
  • How to deal with pointers?
  • Basically everything about pointers

Intermediate

  • What is QPointer?
  • How do C pointers compare to QPointer?
  • What is QScopedPointer?
  • How does a scoped pointer mange an object life-time?

Expert


Course material content

QPointer

QScopedPointer

Scoped Pointers from the perspective of object life-time


Exhaustive reference material mentioned in this topic

Further reading topics/links:

Clone this wiki locally