I searched a lot but I could not understand how to clear all items of QListView
?
I used QStringListModel
and QStringList
to fill it.
You can either use model.setStringList( QStringList{} )
, or manually delete the rows with model.removeRows( 0, model.rowCount() )
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With