From kde-core-devel Tue Jun 13 21:18:09 2000 From: Carsten Pfeiffer Date: Tue, 13 Jun 2000 21:18:09 +0000 To: kde-core-devel Subject: Re: Window manager close button? X-MARC-Message: https://marc.info/?l=kde-core-devel&m=96093108424793 On Tue, Jun 13, 2000 at 11:15:35PM +0200, Mirko Sucker wrote: Hiya, > Can anybody tell me what happens exactly when the user clicks the window > managers close button? And, especially, what is the difference than > calling app->quit()? All I want to do is make sure a slot is called when > this close button is hit. QWidget::closeEvent() is called. If you don't override it, your widget will be hidden. So just override it and call your slot from there. Cheers, Carsten Pfeiffer -- http://www.geocities.com/SiliconValley/1632/