vishnu717
5th July 2011, 07:18
Hello
I am Beginner to Qt
I used to navigate windows By creating object of that window and hiding the present window . But the Loading time is about 6 seconds . I wanted to get rid of this.
Here is My code of creating Object of Window
void startWindow::on_english_clicked()
{
MainWindow *other = new MainWindow;
other->ui->tester->hide();
other->ui->textBrowser->hide();
other->ui->frame_2->hide();
other->show();
this->hide();
}
this is the code in Loading the mainwindow and below is code that is redirected again to the startwindow ..
void MainWindow::on_backward_clicked()
{
videoplayer->stop();
videoplayer->hide();
startWindow *start=new startWindow;
start->show();
this->close();
this->deleteLater();
}
I am Beginner to Qt
I used to navigate windows By creating object of that window and hiding the present window . But the Loading time is about 6 seconds . I wanted to get rid of this.
Here is My code of creating Object of Window
void startWindow::on_english_clicked()
{
MainWindow *other = new MainWindow;
other->ui->tester->hide();
other->ui->textBrowser->hide();
other->ui->frame_2->hide();
other->show();
this->hide();
}
this is the code in Loading the mainwindow and below is code that is redirected again to the startwindow ..
void MainWindow::on_backward_clicked()
{
videoplayer->stop();
videoplayer->hide();
startWindow *start=new startWindow;
start->show();
this->close();
this->deleteLater();
}