Hello,
I am a newbie in Qt.I would like to close a window but the Qt Gui hangs when I do so.
I am trying to close the Gui with this->close()

Qt Code:
  1. connect(ui->Close, SIGNAL(clicked()), this, SLOT(close()));
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void MainWindow::close()
  2. {
  3. this->close();
  4. }
To copy to clipboard, switch view to plain text mode 

Can anybody tell me how to close the Gui without hanging it.