Question: qt when to use pointers?
Answer: Qt memory management works with hierarchies of objects, when parent object deletes child objects automatically on destroying. This is why Qt programs always use pointers in similar cases. Memory Management with Qt: Qt maintains hierarchies of objects.