PDA

View Full Version : Capturing close



steg90
25th September 2007, 11:18
Hi,

I have a MDI app and want to capture when the user clicks the close button on the main window ( x button ), is there a signal for this I can capture in my main app?

Thanks,
Steve

wysota
25th September 2007, 11:22
No, there is no such signal. You have to reimplement closeEvent() for the window. If you want to avoid subclassing, you can of course apply an event filter. If you ignore() the event, the window will not be closed.