Question: qt when is destructor called?
Answer: The destructor is called when your class isn't referenced any more and memory may be released to the system. This is done after the closeEvent.