PDA

View Full Version : QTableWidget's paint problem of whole column of any row at a time



sagirahmed
18th October 2010, 12:59
Hi

Kindly see the below attatched files. I have to draw a QTableWidget that contains 100000 rows and 100 column. We have created this. But problem is that I want to paint one whole row.
const QModelIndex index = model->index(llRow,nColumn);
model->setData(index,QColor(Qt::green),Qt::BackgroundRole );

BUt this will PAINT one by one column. If i have 10000 row then its very slow.

Is there any function so that we can paint immediately one complete row soon.

Am i going wrong for choose the widget.
Kindly tell the other widget so that we can draw this type of Filled Table.

THanks
Sagir