[PyQt] Re : Signal and SyntaxHiglight
projetmbc at club-internet.fr
projetmbc at club-internet.fr
Sun Mar 8 08:30:30 GMT 2009
>>> I would like to know if there is a signal sended by the SyntaxHiglighter
>>> when it catches a change in the text ?
> That class is designed to be subclassed rather than connected up with
signals
> and slots, but you could emit your own signals when you handle the
changes in
> format.
> Alternatively, you might want to look at the signals emitted by the
> QTextDocument object itself. These will tell you when the text has changed.
The problem with this method is that a signal is emitted every time a change
appears and not only when a word to highlight is typed.
Best regards.
More information about the PyQt
mailing list