Qt-interest Archive, March 2002
disconnecting close()
Message 1 in thread
Greetings,
I have an application that I need to disconnect the close() signal from the
close box (x-box in hte upper corner). I want it instead to call my own
slot, and never call close(). Is there a way to do this? Thanks.
Message 2 in thread
Hello Greg,
instead of disconnect the close() signal and connect it to your own
slot, you can
reimplement QWidget::closeEvent().
Matthias Bartelt
Greg Murphy wrote:
>
> Greetings,
>
> I have an application that I need to disconnect the close() signal from the
> close box (x-box in hte upper corner). I want it instead to call my own
> slot, and never call close(). Is there a way to do this? Thanks.
>
> --
> List archive and information: http://qt-interest.trolltech.com