[PyQt] QPlainTextEdit: poor performance while hidding blocks
José María García Pérez
josemaria.alkala at gmail.com
Sun Jun 27 17:25:30 BST 2010
I am developping my first programme using PyQt4. It is a text editor based
on QPlainTextEdit, because I want good performance with big documents
(>80000 blocks). The performance is good so far, but when I hide blocks it
takes several minutes to update.
I have a function hiding different blocks by mean of:
Afterwards, I update the viewport:
The loop setting the blocks visibility and the update execution is really
fast (less than a second). After that the application states stuck for
several minutes. Executing:
Any clue of what am I doing wrong?
May this be a bug in PyQt4?
PS: I have more info about what I am doing here:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt