I was wondering if it is possible to ignore / cancel the exit from the application based on a specific logical flag, even if the user must press the red "X" button (close the window).
I am a C # programmer, and I know that it is quite easy to do for .net applications, but I am pretty new to the qt framework, and google search did not bring any relevant results.
Thanks,
source share