Hi,

I have the class SomeClass (a subclass of QWidget) and I want to define the
signal someSignal.

When I write this it's working
class SomeClass(QtGui.QWidget):
     def __init__(.....):
          ......

     someSignal = QtCore.Signal()


But if I define the signal inside the init function it's not working:

class SomeClass(QtGui.QWidget):
     def __init__(.....):
          ......
          self.someSignal = QtCore.Signal()

it gives AttributeError: 'PySide.QtCore.Signal' object has no attribute
'connect'

Can someone explain to me that behavior (or just point me to the appropriate
documentation as I have not found anything)

Regards
Stefan
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to