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




Qt Code:
  1. void startWindow::on_english_clicked()
  2. {
  3.  
  4.  
  5. MainWindow *other = new MainWindow;
  6. other->ui->tester->hide();
  7. other->ui->textBrowser->hide();
  8. other->ui->frame_2->hide();
  9. other->show();
  10. this->hide();
  11. }
To copy to clipboard, switch view to plain text mode 
this is the code in Loading the mainwindow and below is code that is redirected again to the startwindow ..


Qt Code:
  1. void MainWindow::on_backward_clicked()
  2. {
  3. videoplayer->stop();
  4. videoplayer->hide();
  5. startWindow *start=new startWindow;
  6. start->show();
  7. this->close();
  8. this->deleteLater();
  9.  
  10.  
  11. }
To copy to clipboard, switch view to plain text mode