How can I remove all items of a listbox?
list.addItems(list2)
The result ist list1+list2
…
…
list.clear()
list.addItems(list2)
How can I remove all items of a listbox?
list.addItems(list2)
The result ist list1+list2
…
…
list.clear()
list.addItems(list2)
If we talk about QListWidget()
yes common API is .addItem()
to add one item .addItems()
to add list of items and .clear()
remove all items from widget