Question: qt when to use new?
Answer: Normally when you use "new", you need to use delete at some point to free the memory on the heap again. A QTimer object (and QObject classes in general) take as an argument in their constructor a pointer to another QObject, which is then considered its parent. When the parent is destroyed, it also deletes its children.