[PyQt] One question about CodeAide

Algis Kabaila akabaila at pcug.org.au
Mon Nov 15 12:53:47 GMT 2010


Hello Henning,

On Monday 15 November 2010 23:16:49 Henning Schröder wrote:
> Hello!
> 
> On Thu, Nov 11, 2010 at 10:54 AM,  <projetmbc at club-internet.fr> 
wrote:
> > Hello,
> > I know that the author of this project
> > http://www.henning-schroeder.de/codeaide/ is on this list.
> >
> > I would like to know the method used for implementing FOLDING in a
> > QPlainTextEdit. I'm just interested with the way to hide-show some 
special
> > lines, and not with the way to find the line to hide-show.
> >
> A QPlainTextEdit has a document() method which returns a 
QTextDocument instance.
> This object contains QTextBlock instances (normally each row is a 
QTextBlock).
> To hide a row for folding you call the method setVisible(False)
> 
> Regards
> Henning

So the QTextEdit and QPlainTextEdit handle the QTextDocument in much 
the same way?

OldAl.
-- 
Algis Kabaila
http://akabaila.pcug.org.au/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101115/819b3716/attachment.html>


More information about the PyQt mailing list