jmsbc
1st February 2011, 02:08
Hi,
I have a console application that uses QCoreApplication, and it is executed using exec():
int main()
{
QCoreApplication qtApp(argc, argv);
MsDbServer server;
server.start();
return qtApp.exec();
}
I want to perform some code clean-up when a user clicks on the "X" button on the top right corner of the console application. How can I detect when this window gets closed in this way?
Thanks
I have a console application that uses QCoreApplication, and it is executed using exec():
int main()
{
QCoreApplication qtApp(argc, argv);
MsDbServer server;
server.start();
return qtApp.exec();
}
I want to perform some code clean-up when a user clicks on the "X" button on the top right corner of the console application. How can I detect when this window gets closed in this way?
Thanks