Hi guys! I was trying to show mainwindow after to hide that, but I couldn`t do that.

First I hide the mainwindow in the pushbutton action and open a dialog window:
Qt Code:
  1. void MainWindow::on_NewTest_clicked()
  2. {
  3. this->hide();
  4. NewTest newtest;
  5. newtest.setModal(true);
  6. newtest.exec();
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 

Then in this dialog window I would like to add a button to return to the mainwindow, but I searched and I didn`t found anything about it. Thanks guys!