Hello,

So far I use the following way to color the colum of a tableview :
Qt Code:
  1. // Color the colum
  2. for (int i = FirstLine; i < Max_Number_of_Lines; i++)
  3. InputDataModel->setData(InputDataModel->index(i, SelectedColumn), SelectedVariableColor, Qt::BackgroundRole);
To copy to clipboard, switch view to plain text mode 

It works but it is very slow when Max_Number_of_Lines is greater than 2000. Then I have to wait 2 or 3s before it's colored.

Would you know if there is a faster (and more clever) way to proceed ?

Thanks in advance