Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QTreeView - from bottom to top ?



  • Hey

    Right now the treeView renders from top to bottom, is there a way to configure it so it is flipped? 1st item is at the bottom and starts there. Then any extra item goes above the previous item?

    TIA.



  • @Dariusz

    How should the TreeView know where to put the first item, when there is no item inside (Spacing etc).
    What kind of items / data do you have in your TreeView?

    You could insert new branches above the top-most existing one manually.


  • Lifetime Qt Champion

    Hi
    Can i ask what use the case is?

    I never saw such a flipped tree.

    Also the scrolling would be very confusing. :)



  • @Pl45m4 said in QTreeView - from bottom to top ?:

    @Dariusz

    How should the TreeView know where to put the first item, when there is no item inside (Spacing etc).
    What kind of items / data do you have in your TreeView?

    You could insert new branches above the top-most existing one manually.

    The item would start at bottom and every new item would go above previous item.

    @mrjj said in QTreeView - from bottom to top ?:

    Hi
    Can i ask what use the case is?

    I never saw such a flipped tree.

    Also the scrolling would be very confusing. :)

    For example photoshop, has top-down relationship where layer above occludes layer below. It would make sense then to grow layers from bottom not from top :- )


Log in to reply