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")) );
connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );
To copy to clipboard, switch view to plain text mode
void MyClass
::addChatTab( QString name
) {
tabWidget->addTab( newTab, ( name ) );
}
void MyClass::addChatTab( QString name )
{
QWidget *newTab = new QWidget( tabWidget );
tabWidget->addTab( newTab, ( name ) );
}
To copy to clipboard, switch view to plain text mode
And if I clicked this button no tab's appering.
Bookmarks