sang
24th August 2010, 10:44
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:
connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );
void MyClass::addChatTab( QString name )
{
QWidget *newTab = new QWidget( tabWidget );
tabWidget->addTab( newTab, ( name ) );
}
And if I clicked this button no tab's appering.
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:
connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );
void MyClass::addChatTab( QString name )
{
QWidget *newTab = new QWidget( tabWidget );
tabWidget->addTab( newTab, ( name ) );
}
And if I clicked this button no tab's appering.