How can I add a checkbox/radio button to QTableWidget

There are two methods:

void QTableWidget::setCellWidget(int row, int column, QWidget* widget)

and

void QListWidget::setItemWidget(QListWidgetItem* item, QWidget* widget)

They allow to insert any widget and other controls that inherit QWidget. Checkbox/radio button/combobox do inherit from QWidget.

Leave a Comment