PDA

View Full Version : How to override ShowEvent() etc



marcvanriet
22nd September 2010, 09:24
Hi,

I have a dialog in which I override the showEvent() and hideEvent() methods.

Do I have to call the original showEvent() and hideEvent() of QDialog after executing my own code or not ? Everything seems to work without calling them.

Best regards,
Marc

Lykurg
22nd September 2010, 10:13
Since QWidget::showEvent() is an empty function there is no need to call it.

Edit: May this is changed in later versions of Qt, but that is not very likely.