Access to state widget in QTableWidget
-
Hello,
i would like to know how to access to the state of a widget (QCheckBox for example) in a QTableWidget ?
Regards.
-
Hi,
Since you take the QCheckBox example, how are you setting up your QTableWidget ?
-
yes of course :
QCheckBox *chk = new QCheckBox("");
ui->tableWidget->setCellWidget(x,y,chk); -
Then use cellWidget and qobject_cast to get your QCheckBox, then you can retrieve its state