Hello,

I am trying to configure the look of a QTableView widget. I applied a style sheet to my main form which is taken up buy all its children including the QTableView.

Once I add a model to the QTableView object the headers appear. The colour of the text is according to the style sheet but the background I cannot configure.

The applied style sheet is:
*{
background-color: qlineargradient(spreadad, x1:1, y1:0.813, x2:1, y2:0, stop:0 rgba(87, 87, 87, 255), stop:1 rgba(135,135, 135, 255));
border: 2px solid gray;
border-radius: 10px;
padding: 0 8px;
color: rgb(255, 255, 255);
}

The part of the header without column text is nice with rounded corners and shaded gray, so is the background f the table. The header text is white as it should be but the text background is light gray instead of shaded.
Please see screen shot below:

QtableView.jpg

How can I configure QTableView to have a smooth continues shaded header via style sheets?

Thanks