[Qt-interest] QDialog::closeEvent() is called only when a modal dialog is closed by clicking the "X" button
Zeljko
zeljko at holobit.net
Wed Jun 29 13:39:17 CEST 2011
Andre Somers wrote:
> This behavior is totally logical.
> If accept and reject would actually destroy the object, it would be
> impossible to use code to retrieve values from the dialog afterwards. The
> pointer to the dialog would have become invalid behind your back!
They should not destroy object, that's normal but close should be called in any
case. Why reject() (hide()) isn't called when you click 'X' button ?
IMO, current behaviour is pretty messy.
zeljko
More information about the Qt-interest-old
mailing list