[Qt-interest] Qt-based Tree container?

Andre Somers andre at familiesomers.nl
Tue Oct 27 11:15:51 CET 2009


Hi,

With the talks about model/view programming still in my mind, and the 
remarks on how you should not use a model to actually store the 
information but only provide an interface to it comming back to memory, 
I wanted to refactor a model I have done in an application I am working on.

I find myself needing a generic tree implementation, and I realize that 
that is something I have been strugling with before when trying to 
implement tree models: trees are hard to get right...

Looking through the Qt container classes, I was wondering why there 
isn't a QTree container class to store n-ary trees in a good way. I 
think that would be very useful to have in the toolkit. What do other 
people here use if they need to keep data in memory in a tree structure? 
Is there some Qt-ish generic implementation around I could use? Should 
it be added to the Qt container classes?

André



More information about the Qt-interest-old mailing list