PDA

View Full Version : Why do we have nondestructive closing?



spraff
27th February 2009, 14:45
That QWidgets don't delete themselves when they're no longer needed bugs me, it plays all hell with RAII and needs nontrivial boilerplate code. Also, I've never got WDestructiveClose to behave as I expect it to.

Can someone please explain to me the motivation for not making windows close destructively by default?

jpn
27th February 2009, 15:15
Qt::WA_DeleteOnClose always worked fine for me.