I want to create a console application in Qt which handles Close, Minimize and Maximize buttons of the console window. My goal is just to show some message before the application quits - i.e. Close button is clicked.
Further, I want the application to be minimized to the system tray instead of task bar. However, it seems there are no signals or events which I can process when user clicks on one of the system buttons.
Is it even possible?