pyside / PySide

ATTENTION: This project is deprecated, please refer to PySide2
https://wiki.qt.io/PySide2
GNU Lesser General Public License v2.1
291 stars 66 forks source link

QSignalTransition don't like Signal with str or unicode as argument #137

Closed prrvchr closed 8 years ago

prrvchr commented 8 years ago

I can not use a QSignalTransition with a signal having an str or unicode as argument. Error message: QSignalTransition: no such signal: ObjectName::SignalName(str)

It works well with bool or int as Signal argument... or Signal with no argument... PySide 1.2.1 / Python 2.7.6

prrvchr commented 8 years ago

Ok this is a syntax problem:

For subclassing you must do:

QSignalTransition.__init__(self, lineEdit.textChanged[str])

and not

QSignalTransition.__init__(self, lineEdit, "textChanged(str)")

Thank you all