コード例 #1
0
void MainWindow::on_button_graph_clicked()
{
  if(ui->tabWidget->currentIndex() == 0){
   dialogWindow = new TeachingGraphDash(this);
   dialogWindow->showMaximized();
  }else if(ui->tabWidget->currentIndex() == 1){

      QDialog *pubDash = new publicationGraphDash(this);
      pubDash->showMaximized();
  }else if(ui->tabWidget->currentIndex() == 3){

      QDialog *presDash = new PresentationGraphDash(this);
      presDash->showMaximized();
  }else if(ui->tabWidget->currentIndex() == 2){

      QDialog *grantsDash = new GrantsFundingGraphDash(this);
      grantsDash->showMaximized();
  }
}