View Single Post
Posts: 107 | Thanked: 74 times | Joined on Jan 2010
#110
Originally Posted by sevla View Post
Can also do it this way I think. Or use auto_ptr which does not need a "delete".
Hi sevla, as the button is a child of MyWidget, the MyWidget destructor will automagically delete it

Just another great feature of Qt

Regards

Niko
 

The Following User Says Thank You to nicola.mfb For This Useful Post: