Ok, so why is this code not working??
void Jarvis::closeEvent(QCloseEvent *e)
{
if (m_doQuit) {
e->accept();
} else {
e->ignore();
hide();
}
}
m_doQuit is true, I checked that.
For now I am using
void Jarvis::closeEvent(QCloseEvent *e)
{
if (m_doQuit) {
QApplication::quit();
e->accept();
} else {
e->ignore();
hide();
}
}
which does work, but IMHO should work even the first one. Why it does not work?
By "doest not work" I mean that application is not closed :/ It just keeps running.