C++, add/remove rows from a QTableWidget
-
29-10-2019 - |
Pergunta
I'm creating a simple app with a table and an "Add row" button. Using Qt Creator I thought I can do something like this:
QObject::connect(ui->addRowButton, SIGNAL(clicked()),
ui->moneyTableWidget, SLOT(insertRow(1)));
But I can't. I'm really new to Qt and I could be wrong, but think the problem is that insertRow is not a SLOT method for QTableWidget...
How can I achieve the row insertion?
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow