...for (int i=0; iNumRows; ++i) { chb = new QCheckBox("check", table); table->setCellWidget(i, 0, chb); }...
...for (int i=0; iNumRows; ++i) { QCheckBox * checkBx = new QCheckBox(table->cellWidget(i,0)); checkBx->setChecked(true); }...
for (int i=0; iNumRows; ++i) { QCheckBox * checkBx = new QCheckBox(table->cellWidget(i,0)); checkBx->setChecked(true); }
for (int i=0; iNumRows; ++i) { QCheckBox * checkBx = qobject_cast<QCheckBox *>(table->cellWidget(i,0)); checkBx->setChecked(true); }
... (QCheckBox *)table->cellWidget(i,0))->setChecked(true);...
QComboTableItem * cBx =((QComboTableItem *)(table5->cellWidget(2,0))); cBx->setCurrentItem(m);
QStringList cC; QComboTableItem* paItem; cC << "it 1" << "it2"; paItem= new QComboTableItem(table5,cC,FALSE); paItem->setEditable(FALSE); // можно редактировать paItem->setCurrentItem(0); table5->setItem(2,0,paItem);