PyQt5 ListWidget Add List Items
while learning PyQt5 i found a little problem( maybe a bug) in the ListWidget Widget (and all other widgets) the ListWidget have a addItem method overloaded : ( the code is in c++
Solution 1:
If you want to add a list you must use the function addItems().
Change:
listWidget.addItem(ls)
to
listWidget.addItems(ls)
Post a Comment for "PyQt5 ListWidget Add List Items"