请问下怎么清除QTreeView里面的model, 就像QComboBox的clear()函数那样,一下把里面的东西全清空了
------解决方案--------------------
void QTreeWidget::clear ()
Clears the tree widget by removing all of its items and selections.
------解决方案--------------------
清空model中的数据,QTreeView中的数据,自动清空