QTreeView grid line color

I am using QTreeView to display expandable table. But the grid is not showing on QTreeView like on QTableView.

I have tried below code in Ui designer for the property styleSheet of treeview

gridline-color: rgba(255, 255, 255, 255);

But still the grid lines are invisible. What could be the issue?

Answers


Try this hack:

QTreeView::item { border: 0.5px ; border-style: solid ; border-color: lightgray ;}

Need Your Help

Rails - Testing fixtures error NoMethodError: undefined method `type' for nil:NilClass

ruby-on-rails ruby tdd associations fixtures

I have a problem running tests that use fixtures with associations between models.

python how to change ending of code

python python-2.7 pydub

Im trying to figure out how to edit the ending of this string: