[QTextEdit] Delete single lines
Hi there,
I need to delete some (one or multiple) lines in a QTextEdit. The only thing I found is QTextEdit::clear which deletes all lines, but that's not what I want. I need a more direct access to edit/delete a single line but neither QTextEdit nor QTextDocument seem to provide an interface for that.
How am I supposed to do that?
Re: [QTextEdit] Delete single lines
Re: [QTextEdit] Delete single lines
Quote:
Originally Posted by
sedi
Depends. I need to process a lot of text and the link uses functions intended for user interaction to delete the text. Is that efficient? I think it is, though. Thanks!
Re: [QTextEdit] Delete single lines
It does not use functions for user interaction. It's a correct approach.