PyQt5根据控件Id获取控件对象的方法 如下所示:self.findChild(QComboBox,"name")selfisclassfirstparameterisTypesecondparameterisIdString以上这篇PyQt5 控件对象