Okay, I have to be missing something here.

I have a QDialog called "form":
In form.h:
protected:
void closeEvent(QCloseEvent *event);

In form.cpp:
void Form::closeEvent(QCloseEvent *event)
{
QMessageBox::information(NULL, "here", "Closing the Form");
gui->MainForm->tabWidget_Survey->setEnabled(true);
event->accept();
}

This is to capture when a user clicks the "X" at the top of the form.I put the message box there just as a test but nothing happens. Does something need to be connected?

Thanks,
Sean