PDA

View Full Version : QTreeView display childs horizontly



migel
9th May 2011, 13:04
I need to have I Tree behave with its childs displayed horizontally and get rid of the left tree lines. The below structure shows the example.

- FOLDER
FILE FILE FILE FILE FILE FILE
FILE FILE FILE FILE FILE
- FOLDER
FILE FILE FILE FILE FILE FILE
FILE FILE FILE FILE FILE FILE
FILE FILE FILE

when I click on folder it expends and collapses, each FILE must be a custom WIDGET not a text string.

The post below is (my) what I am trying to get but that does not work for me. I need some how code example how to implement custom view for a QTree, google sacks at this point.

http://www.qtcentre.org/threads/41384-HeightForWidth-always-1-QListViw?p=189542#post189542

Any one can help me out, Thank You