Hello All,


I have developed one application,in which I m using 4-5 different screens to navigate.

Now from Mainwindow screen I have activated the another screen,so my mainwindow is now hidden .But in this new screen on one button click event I need to show the mainwindow screen .

How to acheive it???

The code I m using is as follows

in MainWindow.cpp

Qt Code:
  1. void MainWindow::f_Open_screen_al()
  2. {
  3. screen_al->show();
  4. screen_al->activateWindow();
  5. }
  6.  
  7. void MainWindow::ShowMainWindow()
  8. {
  9. this->activateWindow();
  10. }
To copy to clipboard, switch view to plain text mode 

and in screen_al.cpp
Qt Code:
  1. connect(ui.pushbutton, SIGNAL(clicked()), this->parent(), SLOT(ShowMainWindow()));
To copy to clipboard, switch view to plain text mode 

But No mainwindow is displayed.....

Pls help