Hi! I'm trying to change the background color of my QTableWidget horizontal header item but it's not working.

Qt Code:
  1. QTableWidgetItem *tblCol1 = new QTableWidgetItem("Column 1");
  2. tblCol1->setBackground(Qt::red);
  3. tableWidget->setHorizontalHeaderItem(0, tblCol1);
To copy to clipboard, switch view to plain text mode 

Is there other way to do this?

thanks..