Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
xcround last edited by
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.
giesbert last edited by
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.