insertPlainText and carriage return
term is a class that descends from QPlainTextEdit.
This is my code:
Code:
term->insertPlainText(ba);
term->insertPlainText("ABC");
I was expecting that the result of this code was like this:
or
ABC should be in the same line that Teste123 was.
But the result is
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
Re: insertPlainText and carriage return
You have to remove \r before inserting.
Re: insertPlainText and carriage return
So, if I want to treat this behavior, I have to do it manually?
Thanks
Re: insertPlainText and carriage return