Hi,

I am using a QTreeview whose model class is derived from QAbstractItemModel. I have my model data in a QList, to populate the treeview. Now, on click of Cancel button, i want to clear all the items in the treeview (make it empty). QTreeview is not getting cleared just by clearing the QList model data.Not sure, how to use beginresetmodel,endresetmodel,etc . Please help me on this