gfernandes
18th February 2014, 09:34
Hi,
I have created an application which has several UI forms. When the user clicks on the shutdown button, the ui form for shutdown appears where i call a function to save the last state of the application to a database. On completion I emit a signal. This signal is connected to a slot where I have written this->close();
When I run my application I see using qDebug() << messages that the slot where this->close(); is written is executed but it does not close the UI application.
I wrote this->deleteLater(); instead and it successfully closed the application.
Is this a correct way to do it? Any help is appreciated.
Giselle
I have created an application which has several UI forms. When the user clicks on the shutdown button, the ui form for shutdown appears where i call a function to save the last state of the application to a database. On completion I emit a signal. This signal is connected to a slot where I have written this->close();
When I run my application I see using qDebug() << messages that the slot where this->close(); is written is executed but it does not close the UI application.
I wrote this->deleteLater(); instead and it successfully closed the application.
Is this a correct way to do it? Any help is appreciated.
Giselle