How to set visibility for textblocks in QTextEdit?
Posted
by serge
on Stack Overflow
See other posts from Stack Overflow
or by serge
Published on 2010-04-23T11:31:55Z
Indexed on
2010/04/23
11:33 UTC
Read the original article
Hit count: 201
Hi everyone,
i tried to hide textblock's in QTextEdit, but it doesn't work:
block = textedit.document().begin()
block.setVisible(False)
This code works fine for QPlainTextEdit, but not for QTextEdit. In documentation i haven't found any mention of how it should work for QTextEdit, just following:
void QTextBlock::setVisible ( bool visible ) Sets the block's visibility to visible.
This function was introduced in Qt 4.4.
See also isVisible().
How can i hide block's in QTextEdit?
Thank you in advance
© Stack Overflow or respective owner