On Fri, Feb 10, 2012 at 9:16 PM, Aaron Richiger <a.ri...@bluewin.ch> wrote:
> Hello!
>
> Below, you get an executable piece of code to demonstrate the possibility of
> setting the background color for a specific cell. This is the shortest
> possibility, but yours would also work with the following additional line:
> br.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
>

this is great, now it works for me!

however, i found that by programming the BackgroundRole, i can only
set color for the cells in the TreeView.
the remaining area, like the root node (the plus sign), and the branch
lines connecting parent node to child nodes are still in white
color(background)

how can i set the color for those areas, so all is in the same color?

perhaps the easiest way is to set the background color for the
TreeView, but i have no idea how to do that. i looked for the
setBackgroundColor() method, but it seems nonexistent.

thanks!
Jun
_______________________________________________
PySide mailing list
PySide@lists.pyside.org
http://lists.pyside.org/listinfo/pyside

Reply via email to