The following is not possible:
A slot can have maximum the same amount of parameters as the signal.Qt Code:
connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );To copy to clipboard, switch view to plain text mode
The following is not possible:
A slot can have maximum the same amount of parameters as the signal.Qt Code:
connect( pushButton, SIGNAL(clicked()), this, SLOT(addChatTab("Name")) );To copy to clipboard, switch view to plain text mode
Ok now works! If i remove QString param!
I can't either one param in slot?
Qt Code:
void MyClass::addChatTab() { mainLayout->addWidget(fileNameLabel); setLayout(mainLayout); tabWidget->addTab( newTab, ( "New tab" ) ); }To copy to clipboard, switch view to plain text mode
How to add buttons/layout or something tabWidget, now it not works!
Bookmarks