PDA

View Full Version : connect window's close button



ahmetturan
10th July 2011, 10:05
how can i connect window's close button with my function.

Zlatomir
10th July 2011, 10:32
You can over-ride the QWidget::closeEvent (http://doc.qt.nokia.com/latest/qwidget.html#closeEvent)

Also you can tell us more about what are you trying to achieve, what function are you trying to call, what window close is supposed to trigger the function call (the main-window or some child-window) and maybe some other solutions will pop-up.

ahmetturan
10th July 2011, 22:48
i solve my problem using closeEvent
thank you

charlotte
12th July 2011, 07:50
You can over-ride the QWidget::closeEvent (http://doc.qt.nokia.com/latest/qwidget.html#closeEvent)



I even have tried this myself, and it is really proven effective...