PDA

View Full Version : QTreeView::branch gridline-color?



chouqud
20th March 2014, 20:38
I'm trying to set the grid-line color of a QTreeView branch via the stylesheet.



QTreeView::branch:hover {
gridline-color: rgba(255, 255, 255, 255);
background-color: rgba(255, 0, 0, 128);
}


What I expect is a white dotted line with red background but while the background changes correctly, it looks like the grid-lines are simply failing to render.

Removing the style restores the grid-lines to the default style. What am I doing wrong?

_chouqud_

ChrisW67
20th March 2014, 23:18
The grid lines are the row and columns separators between cells in a QTableView, not the branch lines in a QTreeView.

The branches are customised in a QTreeView using border images.

chouqud
21st March 2014, 11:48
The branches are customised in a QTreeView using border images.

Thanks for clearing that up. Since I just want to change the color and not the style where would I find the original images?