Solved how do something before the user close the window?
-
I want to do something before the user close the window
not when the whole application get closed
how to do that? -
Hi,
Re-implement the closeEvent method as shown in the documentation.
-
Looks very close to this thread.
Please don't ask the same question several times.
If you made a mistake on the title or the question text, you can edit it rather than re-ask the exact same stuff with just minor corrections.
-
@SGaist but i removed it how it's still available
-
You just deleted the post not the topic.
-
@davidlabib
Thanks for removing it after I posted an answer.... -
@JonB no no this is not what you are thinking
i deleted it because it had a lot of mistakes
I hope you understand -
-
Did you declare that function in your header ?
-
@SGaist Yes i did
-
As the error suggest, both signatures don't match. In your header you pass a QCloseEvent object, while the original and correct signature is to pass a pointer to a QCloseEvent object.
-
i got it , thanks a lot
@JonB and again I'm Apologizing about deleting the topic but it had a lot of mistakes
i thought that deleting it and make a new one is better