Page 1 of 1

[SOLVED] Prevent program from exiting

Posted: Tuesday 10th October 2023 11:41pm
by sadams54
I know I saw something about this but can't find it..

Is there a way to catch and stop your project from ending including if they hit the big X?

this needs to be done inside the program not external.

Re: Prevent program from exiting

Posted: Wednesday 11th October 2023 12:20am
by thatbruce
(yes, its been a long time since that was spoken about)

 in the Form_Close event handler
  Stop Event
End


works with QT5

Re: Prevent program from exiting

Posted: Wednesday 11th October 2023 6:21pm
by sadams54
Thank you, that was what I was looking for.