PDA

View Full Version : How to capture exit slot of main window



jyoti kumar
30th May 2006, 10:14
In main window, the X button that comes on top right side of the window, how to capture signal onClick corresponding to this button. Basicaaly I want to handle the slot corresponding to the exit button as some pre processing is to be done.

Pls help

jacek
30th May 2006, 10:22
Reimplement the close event handler (QWidget::closeEvent()).

jyoti kumar
31st May 2006, 07:06
Thanks a lot. That worked.