change main tab for every click
This commit is contained in:
parent
9e883a8a2f
commit
f57ef7a819
1 changed files with 2 additions and 0 deletions
|
@ -1208,6 +1208,8 @@ void MainWindow::on_action_Exit_triggered()
|
|||
|
||||
void MainWindow::on_mainTabBar_tabBarClicked(int index)
|
||||
{
|
||||
ui->mainTabBar->setCurrentIndex(index);
|
||||
|
||||
int tabIndexToStackIndex[5] = {0, 0, 1, 2, 3};
|
||||
ui->mainStackedWidget->setCurrentIndex(tabIndexToStackIndex[index]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue