Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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