Hei,
I have a problem, designing my GUI in QtDesigner and adding QTabWidget, because it add tab's in there (UI file no tab's).

Code:

Qt Code:
  1. connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void MyClass::addChatTab( QString name )
  2. {
  3. QWidget *newTab = new QWidget( tabWidget );
  4. tabWidget->addTab( newTab, ( name ) );
  5. }
To copy to clipboard, switch view to plain text mode 

And if I clicked this button no tab's appering.