Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

cellwidget to setvalue

//To set the value:
int valueIWant = 5;
ui->tableWidget->cellWidget(0,2)->setProperty("value",valueIWant);"
//And to read the value:
int actualValue = ui->tableWidget->cellWidget(0,2)->property("value").value<int>();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cellwidget #setvalue
ADD COMMENT
Topic
Name
8+6 =