TreeView selection


#1

In the demo app ValueTrees example the nodes have a light gray backgrouns when selected. I tried to create a tree in my own app and there is no change when a node is selected. Any idea what I am missing?


#2

Here's the solution. This will set the background color of the selected node.

tree.setColour(TreeView::selectedItemBackgroundColourId, Colours::blue);