DURGAPRASAD NEELAM
16th April 2014, 14:36
hi,
i have re implemented CloseEvent(), below is the code. the problem is after i close the tool it is still existing in the processes table (task manager -> processes) and i have observed main window destructor is not calling after this. i am not sure what is the problem. please provide some solution.
Thanks in advance .
void mainwindow::closeEvent(QCloseEvent* f_event)
{
if(flag)
{
if(QMessageBox::Yes == QMessageBox::question(this,"Conformation..",
"file is recording...\nDo you want to close the tool...?",QMessageBox::Yes|QMessageBox::No))
{
QMainWindow::closeEvent(f_event);
}
else
{
f_event->ignore();
return;
}
}
QMainWindow::closeEvent(f_event);
}
i have re implemented CloseEvent(), below is the code. the problem is after i close the tool it is still existing in the processes table (task manager -> processes) and i have observed main window destructor is not calling after this. i am not sure what is the problem. please provide some solution.
Thanks in advance .
void mainwindow::closeEvent(QCloseEvent* f_event)
{
if(flag)
{
if(QMessageBox::Yes == QMessageBox::question(this,"Conformation..",
"file is recording...\nDo you want to close the tool...?",QMessageBox::Yes|QMessageBox::No))
{
QMainWindow::closeEvent(f_event);
}
else
{
f_event->ignore();
return;
}
}
QMainWindow::closeEvent(f_event);
}