Signal on qt

L

luca72

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top