TreeView question


#1

I have a treeview on a component that has some things that get rather wide for its allocated area. Is there a way to have a side-scrolling bar appear to use when it gets too wide? scrollToKeepItemVisible just works vertically, and wrapping it inside a scrollview doesn’t auto resize as I don’t see a way to get an asked for width of the treeview. I could see needing to add a function to the items such as int preferredSize() or similer. Would help though.

EDIT: Meant width, not height on one word…


#2

Yes, it could do with some control over that.

At the moment I guess you could do it manually by using a scrollview and setting the treeview’s width to fit its contents, but that’s a real hassle. I’ll put it on my list.


#3