As we all know, QTextEdit can be used to input characters.
Characters input by user can be got by QTextEdit::toPlainText().
My application needs user to input character CR(Carriage Return) into QTextEdit.
Can character CR be input into QTextEdit?
If it can, how to input it?
And how to get it from QTextEdit?
Does QTextEdit::toPlainText() work?
By the way, my application can get character LF(Line Feed) from QTextEdit by QTextEdit::toPlainText() .
CR can’t be input into QTextEdit by pressing Ctrl+M .
Thanks for any idea.
↧