I don't have any crash with my application .

My problem is memory.

According to Qt Doc :
Warning: It is very unlikely that you will ever need this function. If you have a widget that changes its content dynamically, it is far easier to use QStackedWidget.
Does setting parent to compromise anything for deletion I'm not aware off ?