I'm displaying the count of the items in QTableWidget in QLabel, but whenever I do some update I have to update the count manually(the label). Is there any signal that emits when I remove or add rows? I tried cellChanged and itemChanged but neither of them emits when I remove a row. There's no dataChanged signal available.
This is what I do right now:
ui->tableWidget->insertRow ( ui->tableWidget->rowCount() );
// ....
ui->lblTotalElements->setText(QString::number(ui->tableWidget->rowCount()));