Hi dudes!

Is there anyway to execute some code after the user press ESC key? I override closeEvent but it does not work (but it works if I press X window button)

I read on docs if ESC key is pressed, closeEvent can not be ignored, but I just want to execute some code.


Thanks a lot.