term is a class that descends from QPlainTextEdit.
This is my code:
term->insertPlainText(ba);
term->insertPlainText("ABC");
QByteArray ba = "Test123\r";
term->insertPlainText(ba);
term->insertPlainText("ABC");
To copy to clipboard, switch view to plain text mode
I was expecting that the result of this code was like this:
ABCTest123
ABCTest123
To copy to clipboard, switch view to plain text mode
or
ABCt123
ABCt123
To copy to clipboard, switch view to plain text mode
ABC should be in the same line that Teste123 was.
But the result is
Test123
ABC
Test123
ABC
To copy to clipboard, switch view to plain text mode
Just want the carriage return to return the carriage in the same line.
Is it possible or do I have to treat this kind of thing manually?
Thanks is advance
Bookmarks