I have an option menu and under it is original and replace with the code definition below for each option
Qt Code:
// code for original interface void MainWindow::on_actionOriginal_triggered() { ui->centralWidget->show(); } // code for replace original interface void MainWindow::on_actionReplace_triggered() { ui->centralWidget->hide(); }To copy to clipboard, switch view to plain text mode
The original interface has three buttons and two line edits when the program is run. Now when the user clicks the replace option I want to replace the original interface with 2 buttons and a line edit. And when the user clicks the original option it's able to display the original interface again
So how can I replace the contents of the original interface that was shown before with a new one?
Bookmarks