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.