Hello,
Sorry for my English. I'm new to Qt, in my project the user can move from one tab to the next one. ( Slot of the button: ui->Pestanas->insertTab(1, ui->Pestana_Orden_Trabajo, "Orden de Trabajo");
ui->Pestanas->setCurrentIndex(1); )

It works, but I would like to just show the first tab when the window appears for the first time.
I've tried this:


Qt Code:
  1. Partes::Partes(QWidget *parent) :
  2. QDialog(parent),
  3. ui(new Ui::Partes)
  4. {
  5. ui->setupUi(this);
  6.  
  7. ui->Pestanas->setCurrentIndex(0);
  8. ui->Pestanas->removeTab(1);
  9. ui->Pestanas->removeTab(2);
  10.  
  11. }
To copy to clipboard, switch view to plain text mode 


It makes disappear the second tab that comes with the QTabWidget deffault form when you first include it in the ui. But the the tab that I added for designing the widgets I want it to bring inside doesn't disappear.

Does anyone know any way to do it?

Thanks for replying!