In a while loop, I'm adding new lines to my QPlainTextEdit using insert() function, I want to keep focus on last line, but I could not manage. How can I do this?

Thanks.