cellClicked(int, int) et QTableWidget
Bonjour,
J'ai un problème avec cellCliked(int,int), j'aimerai que quand je clique sur une cellule celle-ci change de couleur.
self.connect(self.table,SIGNAL('cellClicked(int, int)'), self.changecolor(int, int))
j'ai cette erreur :
Code:
1 2 3 4
| TypeError: arguments did not match any overloaded call:
QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 3 has unexpected type 'NoneType'
QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection): argument 3 has unexpected type 'NoneType'
QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 3 has unexpected type 'NoneType' |
et je vois pas pourquoi, je pense que c'est une histoire avec les int. Je cherche sur internet depuis 2h mais je trouve que des choses pour C++, j'ai essayé de les adapté mais sans succès.
Aidez moi rapidement svp c'est dans le but d'un stage.
Alaninho