Good day.

I'm trying to create a exit button that executes a few functions before closing. Therefore I can not use

connect(exitButton,SIGNAL(clicked()),this, SLOT(quit()));

since this close the program directly.

Does anyone know how to write a customized quit() function or something else that can be used to execute a few functions and then close the handle of the program.

Any help would greatly be appreciated

thanx