Solved QHeaderView stylesheet
-
Hello!
I am styling a QTableWidget's QHeaderView. I want to give it a border-radius in all the QHeaderView but the subcontrol QHeaderView::section gives the properties to all columns.
I have that:
but I need that:
How can I do it?
Thank you very much!
-
![Maybe you should divide image to 3 sections. For edges us 0 and 2 propertly. For internal header use second image.
-
@Bondrusiek said in QHeaderView stylesheet:
Maybe you should divide image to 3 sections. For edges us 0 and 2 propertly. For internal header use second image.
And which is the code for doing that?
-
I fix it doing this:
QTableWidget > QHeaderView::section:first { border-top-left-radius: 5px; } QTableWidget > QHeaderView::section:last { border-top-right-radius: 5px; }