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();
}
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();
}
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 ..
void MainWindow::on_backward_clicked()
{
videoplayer->stop();
videoplayer->hide();
startWindow *start=new startWindow;
start->show();
this->close();
this->deleteLater();
}
void MainWindow::on_backward_clicked()
{
videoplayer->stop();
videoplayer->hide();
startWindow *start=new startWindow;
start->show();
this->close();
this->deleteLater();
}
To copy to clipboard, switch view to plain text mode
Bookmarks