how do something before the user close the window?
Solved
General and Desktop
-
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.
-
You just deleted the post not the topic.
-
@davidlabib
Thanks for removing it after I posted an answer.... -
Did you declare that function in your header ?
-
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