What is the purpose of passing a parent into a constructor of a Qt class object?
Asked
Active
Viewed 1,786 times
1 Answers
4
They ensure your heap-allocated QWidgets are taken care of nicely (delete
called when it needs to be and such).
For a detailed explanation, see this answer to a similar question.