Signal on qt

luca72 lucaberto at libero.it
Tue Apr 12 12:05:15 CEST 2011


hello i have this:
def mytest(self):
    for a in xrange(self.tableWidget.rowCount()):
            self.combo_test = QtGui.QComboBox()
            self.connect(self.combo_test,
QtCore.SIGNAL("currentIndexChanged(int)"), self.metto_test)
            self.combo_test.addItems(self.lista_def)
            self.tableWidget.setCellWidget(a, 4, self.combo_test)
def metto_test(self, index):
    print index

I he no connection what is wrong?

Thanks

Luca



More information about the Python-list mailing list