Hi everybody..
QT: 4.1.3

I would like to run a function before i close my window (QMainWindow) like this and it is not working.
Can somebody see why?

Qt Code:
  1. MainWindow::MainWindow()
  2. {
  3. ui.setupUi(this);
  4. .
  5. .
  6. .
  7. connect(this, SIGNAL(close()), this, SLOT(deletePicture()));
To copy to clipboard, switch view to plain text mode