Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can i delete all items under selected item in treeview
umen242 last edited by
i have treeview as the view and QStandardItemModel as the model.
now i each node in the model has child nodes . my question is
how can i delete all the child nodes under selected item ?
dangelog last edited by
Take the selected QStandardItem and call removeRows / removeColumns on it.