Qt Coder
5th June 2009, 12:12
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
void MainWindow::f_Open_screen_al()
{
screen_al->show();
screen_al->activateWindow();
}
void MainWindow::ShowMainWindow()
{
this->activateWindow();
}
and in screen_al.cpp
connect(ui.pushbutton, SIGNAL(clicked()), this->parent(), SLOT(ShowMainWindow()));
But No mainwindow is displayed.....
Pls help
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
void MainWindow::f_Open_screen_al()
{
screen_al->show();
screen_al->activateWindow();
}
void MainWindow::ShowMainWindow()
{
this->activateWindow();
}
and in screen_al.cpp
connect(ui.pushbutton, SIGNAL(clicked()), this->parent(), SLOT(ShowMainWindow()));
But No mainwindow is displayed.....
Pls help