Hi,

I have a litte trouble reading the background color of a QTableWidget cell.

everytime I use this:
Qt Code:
  1. this->myqtablewidget->itemAt(10, 3)->background().color()
To copy to clipboard, switch view to plain text mode 

it just reads the data from cell 0,0, and not 10,3 or anything else.

So whats the right way to check the background color of a cell? What do I wrong?

I thought of something like:
Qt Code:
  1. if(this->qtablewidget->itemAt( anyx(), anyy() )->background().color() == Qt::green)
  2. dusomething();
To copy to clipboard, switch view to plain text mode