[PyQt] Showing list of widgets

Gib Bogle g.bogle at auckland.ac.nz
Thu Mar 25 08:47:36 GMT 2010


Is this the sort of thing you mean?

self.lineEdit_list = self.ui.tabs.findChildren(QtGui.QLineEdit)
self.spin_list = self.ui.tabs.findChildren(QtGui.QSpinBox)
self.combo_list = self.ui.tabs.findChildren(QtGui.QComboBox)
self.widget_list = self.lineEdit_list + self.spin_list + self.combo_list


More information about the PyQt mailing list