How to finish work with QTextEdit

I am trying to create QTextEditwith some text, and in this text I have end-of-line characters ( \n), but it is not accepted in the object QTextEdit(all text is displayed without any interruptions). Why?

+2
source share
2 answers

If you are using Qt 4.3 or later, you can use setPlainText(const QString &text)

You can disable the editing of large text using setAcceptRichText(bool accept)(Qt 4.1 or later)

+3
source

Per documents , if you setTextFormat(PlainText), you should get what you want - quoting with an accent:

QTextEdit . , . , . , 0. , 0. (). . , .

0

All Articles