Lumbricus
19th May 2016, 16:32
Hey guys,
I'm trying to exit my gui application instantly withought continuing the execution of my Mainwindow. I do not want to emit a Mainwindow close event. I was trying something like this but it seems to not be working:
//get application pointer
QCoreApplication *qapp = QCoreApplication::instance();
//shutdown application with error
qapp->exit(EXIT_FAILURE);
this seems to be doing nothing thow :/
I even put a QThread::msleep(5000); after this to make sure it was no issue with the eventloop not being executed quickly enough before the debugger hits an error.
I'm trying to exit my gui application instantly withought continuing the execution of my Mainwindow. I do not want to emit a Mainwindow close event. I was trying something like this but it seems to not be working:
//get application pointer
QCoreApplication *qapp = QCoreApplication::instance();
//shutdown application with error
qapp->exit(EXIT_FAILURE);
this seems to be doing nothing thow :/
I even put a QThread::msleep(5000); after this to make sure it was no issue with the eventloop not being executed quickly enough before the debugger hits an error.