I had created a Qdialog from another .ui file. That is the way i open it.
Qt Code:
  1. preferences *gamatos = new preferences(this);
  2. gamatos->show();
To copy to clipboard, switch view to plain text mode 

So on the QDialog how with a press of a button close the QDialog...


Also you know on the mainwindow ( where i had a button which opens the QDialog i mentioned before) i have a push button. when you press it opens a QMessageBox. And if you try to click somewhere on the mainwindows it won't let you until you close the QMessageBox. Show how can i do the same when the dialog i said before opens?