Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Qt Listview



  • Hi,

    Is it possible to have a QListView to expand/collapse if that node contains a child? (i.e, only show parents at first, but if clicks on that node and it contains a child, then display a child?)
    I have implemented a QTreeView with collapse/expand but I haven't seem anything for expanding/collapsing on listview since earlier versions.
    Thanks



  • That's by design. A Listview is a plain list, not a tree. And a list has noch child elements. It's a table with only one column.
    If you want to exapnd collaps child elements, you need a treeview.


Log in to reply