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?
QTextEdit
\n
If you are using Qt 4.3 or later, you can use setPlainText(const QString &text)
setPlainText(const QString &text)
You can disable the editing of large text using setAcceptRichText(bool accept)(Qt 4.1 or later)
setAcceptRichText(bool accept)
Per documents , if you setTextFormat(PlainText), you should get what you want - quoting with an accent:
setTextFormat(PlainText)
QTextEdit . , . , . , 0. , 0. (). . , .