setVisible textblock in QTextEdit
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
Re: setVisible textblock in QTextEdit
Hi Corrado!
Some time ago I ran into the same problem. We couldn't find a solution then, except using QPlainTextEdit..
http://www.qtcentre.org/threads/2653...ved?highlight=
If you can, just leave it and wait for the trolls to come up with a fix for that!
Johannes
Re: setVisible textblock in QTextEdit
Thanks, i saw your theme. I have to use QTextEdit because only it supports margin settings