Currenttext() get text
Currentindex() gets the subscript
Event selection function of self. ComboBox. Currentindexchanged. Connect() combobox
The above pyqt5 combobox’s method of getting subscript, text and event selection function is the whole content shared by Xiaobian. I hope it can give you a reference, and I hope you can support developepaer more.