hello I am marco and I am new in the forum

I just started with QT but I'm a autodidact programmer c ++ for a long time

I wanted to create a tab with a distinctive form and each time you create a new tab window I have always the same layout and my basic forms

Immagine.jpg

Qt Code:
  1. void MainWindow::on_tabWidget_currentChanged(int index)
  2. {
  3. qDebug() << n_tab;
  4. if (index == n_tab){
  5. ui->tabWidget->setTabText(n_tab, "QString::number(n_tab)");
  6.  
  7. QWidget *tabWidget;
  8. tabWidget = new QWidget;
  9.  
  10. // ===============================================
  11. // copi form from tab 1 end paste on new tabWidget
  12. // ===============================================
  13.  
  14. ui->tabWidget->addTab(tabWidget,"+");
  15. n_tab ++;
  16. }
  17. }
To copy to clipboard, switch view to plain text mode 

in this case if we press the "+" tab add a new tab
I would like already I said the nuvo widget is equal to the first


Thank you in advance