Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

cellwidget to setvalue

QWidget* some_cell_widget = myTable->cellWidget(0,1);                            // retrieve widget from cell
QDoubleSpinBox* dbl_spin_box = static_cast<QDoubleSpinBox*>(some_cell_widget);   // cast widget to double spin box
double val = dbl_spin_box->value();                                              // get value from spinbox
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cellwidget #setvalue
ADD COMMENT
Topic
Name
9+1 =