Is any of the other windows still open when you call close()?
In any case there is nothing wrong with deleting the window at program end.
Cheers,
_
Is any of the other windows still open when you call close()?
In any case there is nothing wrong with deleting the window at program end.
Cheers,
_
Hi,
Thank you for your reply.
There is no other window open. If I add a pushbutton and implement this->close(); in the onclicked slot of pushbutton the window closes.
But if I were to simply call a function and that saves the application last state and at the end emits a signal stating all states saved and if i connect this signal to a slot which implements this->close(); it does not close. Only this->deleteLater(); works in this case. Anycase if deleting the window at the end of the program is Ok then I will use this->deleteLater();
Thank you
Bookmarks