PDA

View Full Version : Removing all items QListView



vcp
6th August 2009, 16:34
Hi,

How I do to remove all items from QListView?

In QListWidget I use clear() slot, but in QListView I don't know

Thanks

caduel
6th August 2009, 19:38
You must clear the view's model().
Depends on the model whether it sports a clear() call or not.

vcp
6th August 2009, 19:55
Hi caduel,

Thanks, I did what you say and all works fine now

Thanks!