i have this code
Qt Code:
TextEdit::TextEdit() { setPlainText("text1\ntext2"); select(); } // void TextEdit::select() { while (!cursor.atEnd()) { } cout <<qPrintable(cursor.selectedText())<<endl; }To copy to clipboard, switch view to plain text mode
so my text is "text1\ntext2" but function select() return "text1?text2"
'?' it's unprintable Enter?
how to get text in normal mode with '\n' using QTextCursor?
Bookmarks