[PyKDE] textChanged()

Giovanni Bajo rasky at develer.com
Wed Feb 22 15:07:20 GMT 2006


Marco Wahl <mw.visenso at googlemail.com> wrote:

>> This time I was sure I had it right, but no... I fell into another trap.
>>
>> I have a QTextEdit widget and need to know when the contents change. So
>> I found the textChanged() signal and did:
>>
>>     self.connect(self.mainTextWindow, SIGNAL("textChaged()"),
self.doTest)
>
> Didn't work ('mainTextWindow' is my textEdit widget), so I googled for
[...]
>
>  Is it just a typo? 'Chaged'?
> Just a quick guess!

In fact, Qt gives a diagnostic in the console when the signal name is
invalid.
-- 
Giovanni Bajo




More information about the PyQt mailing list