How to create a list of checkboxes
问题 I'm trying to read in an xml file and populate a QListWidget with some of its contents. Each entry should have a checkbox. In Qt Designer I created the list and added an item that has a checkbox by adding the item to the listWidget, then right clicking on it and selecting Edit Items > Properties > Set Flags to UserCheckable. So i can do it manually. But when I read in the xml file to populate the ListWidget I can't make these items checkable. import xml.etree.ElementTree as et xml_file = os