Getting all items of QComboBox - PyQt4 (Python)
问题 I have A LOT of QComboBoxes , and at a certain point, I need to fetch every item of a particular QComboBox to iterate through. Although I could just have a list of items that correspond to the items in the QComboBox , I'd rather get them straight from the widget itself (there are a huge amount of QComboBoxes with many items each). Is there any functions / methods that will do this for me? (Eg: QComboBoxName.allItems() ) I've looked through the class reference but couldn't find anything