Yes its normal, the stacked window is passed to the main window as a ctor param(?) so it will be destroyed when the main window is destroyed. have you tried setting the attribute Qt.WA_DeleteOnClose on the stacked window ? Im not sure if it will work but worth a try.