To show a window simply call show() on it.
I tried that but it didn`t work. Just show a window for half of a second and then close it. I tried to call MainWindow using this code:
Qt Code:
void NewTest::on_Home_clicked() { MainWindow w; w.show(); }To copy to clipboard, switch view to plain text mode
So, how do I do that? I know how to open and close QDialog, but in the QDialog I would like to have a button that close the QDialog and reopen the QMainWindow
So, how do I do that?Do you understand what is the meaning of the above sentence ?The object goes out of scope when the function ends.
I understand, I just wanted to show what I was trying to do. Do you guys know how do I show the MainWindow inside a pushbutton event in another class after it be hidden
Do you want to show the window again without closing the dialog?
Cheers,
_
Bookmarks