📅  最后修改于: 2022-03-11 14:57:38.460000             🧑  作者: Mango
QWidget* some_cell_widget = myTable->cellWidget(0,1); // retrieve widget from cell
QDoubleSpinBox* dbl_spin_box = static_cast(some_cell_widget); // cast widget to double spin box
double val = dbl_spin_box->value(); // get value from spinbox