[PyKDE] Problem with connecting a SIGNAL

Phil Thompson phil at river-bank.demon.co.uk
Sat Jun 1 16:13:01 BST 2002


Janos Blazi wrote:
> 
> I should like to connect the signal textChanged of QLineEdit to a
> function of mine. My code is
> 
> 
> QObject.connect(self.input,SIGNAL("textChanged(QString)"),self.filter_changed)
> 
> but this does not work. I get the error messsage
> 
> RuntimeError: Signal has wrong argument types for slot
> 
> Can anybody give me a hint?

The hint is to read the documentation.

The answer is that the signature is "const QString &".

Phil




More information about the PyQt mailing list