That is because statusLabel and quitButton are created with this as parent, therefore they will be deleted when this gets destroyed. A QObject always deletes all its children.

I was talking about about non-QObject members allocated on the heap. They have to be deleted manually.