Qlabel Haga clic en Python
self.QPLabel.mousePressEvent = self.doSomething
Grotesque Goldfinch
self.QPLabel.mousePressEvent = self.doSomething
...
def doSomething(self, event):
...
QtCore.QObject.connect(self.QPLabel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.doSomething)