Hi everyone,

i tried to hide textblock's in QTextEdit, but it doesn't work:

  1. block = textedit.document().begin()
  2. 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