Hello Henning,

On Monday 15 November 2010 23:16:49 Henning Schröder wrote:
> Hello!
> 
> On Thu, Nov 11, 2010 at 10:54 AM,  <[email protected]> 
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/
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to