you have to get cell widget from QTableWidget with QTableWidget::cellWidget() - I wonder how you could miss that method in docs as you found setCellWidget() (cellWidget() is in 'see also' note in description of setCellWidget()). So you can very easily get your checkbox:
Qt Code:
QCheckBox *cb = qobject_cast<QCheckBox *>(m_ui->tableWidget->cellWidget(selected[5]->row(), selected[5]->column()));To copy to clipboard, switch view to plain text mode
So I hope you can now determine the checkstate of that checkbox.
Bookmarks