QTextEdit::append() inserts a new block so you don't have to append any newline characters.
I presume you have:
textEdit->append("line1\n");
textEdit->append("line2\n");
textEdit->append("line3\n");
textEdit->append("line1\n");
textEdit->append("line2\n");
textEdit->append("line3\n");
To copy to clipboard, switch view to plain text mode
However, you should do:
textEdit->append("line1");
textEdit->append("line2");
textEdit->append("line3");
textEdit->append("line1");
textEdit->append("line2");
textEdit->append("line3");
To copy to clipboard, switch view to plain text mode
Bookmarks