How to change the color of a Qtableview header background?

Asked

Viewed 451 times

1

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

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

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

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.