run function before closing QMainWindow

Printable View