PyQt4 4.4.4 : a bug with highlightBlock ?
Snouffy
alexis.flesch at gmail.com
Fri Nov 20 12:58:47 EST 2009
> You need to change the indexOf() calls to indexIn() calls on the QRegExp
> object:
>
> index = expression.indexIn(text, index + length)
Thank you so much ! After looking a bit more I found out that when
using indexOf the command :
length = expression.matchedLength()
was the one causing a problem. Thus I also had to change the line :
index = text.indexOf(expression)
to :
index = expression.indexIn(text)
Now it works like a charm ! I'll test it at work where we have PyQt
4.3.3.
Thanks again !
More information about the Python-list
mailing list