here is snap of code which is responsible for posting data to table widget elements
.
.
.
lb=dynamic_cast<QLabel*>(tw.cellWidget(row,col));
lb->setBackGroundColor(Qt::Blue);
col++;
lb=dynamic_cast<QLabel*>(tw.cellWidget(row,col));
QLabel *lb;
.
.
.
lb=dynamic_cast<QLabel*>(tw.cellWidget(row,col));
lb->setText(QString::number(y));
lb->setBackGroundColor(Qt::Blue);
col++;
lb=dynamic_cast<QLabel*>(tw.cellWidget(row,col));
lb->setText(QString::number(x));
To copy to clipboard, switch view to plain text mode
Bookmarks