How to change the background color of a QTableView header?

1

I would like to know how to change the background color of the (horizontal / vertical) headers of the QTableWidget object in Qt.

I already know how to change all headers together, using:

ui->tableWidget->setStyleSheet("QHeaderView::seção {background-color:red}");

But I need to individually change the items. Obviously, if that is possible.

    
asked by anonymous 21.08.2015 / 20:37

0 answers