Hi
How clear the listview . i referred the listview .i dson't get any thing
please help me
Thanks
Hi
How clear the listview . i referred the listview .i dson't get any thing
please help me
Thanks
Qt Code:
view->setModel(/*new empty model*/); delete m;To copy to clipboard, switch view to plain text mode
if you dont want to change your current model, and assuming your model is of type QStandardItemModel, here is how to do it:
Qt Code:
mdl->clear();// your view will be automatically updated by this, unless you have your own custom modelTo copy to clipboard, switch view to plain text mode
Bookmarks