Shouldn't you
Qt Code:
  1. whatever->setAttribute(Qt::WA_DeleteOnClose)
  2. connect(newui.updateButton, SIGNAL(clicked()), this, SLOT(close()));
To copy to clipboard, switch view to plain text mode