PDA

View Full Version : Question about close program event.



robgeek
15th February 2016, 03:05
Good evening!

I have a program where i would like to do one last thing(call a mehtod) before i close it with that [x] button, or righ click on the mouse and choose close option.

I know to do that when i create a button and implement a pressButton event, but now i don't have this button. Just that default [x] and right mouse button option. How can i do that?

anda_skoa
15th February 2016, 09:17
You overwrite the window's closeEvent() handler.

Cheers,
_