I have a QPlainTextEdit,which I have to populate in two ways.
When I want to add text at the end , I can do that very simply by using appendPlainText() function provided. I do this when Vertical scrollbar hits lower boundary and if user scrolls after that , then I append new text. This performs very smoothly.
But What I want to do is when user scrolls up and scroll bar hits the upper boundary, and if user scrolls after that(in upward direction), I want to prepend text to it. But the problem is there is no such function prependPlainText() and therefore, I first get plaintext from my QPlainTextEdit, which is a QString, use prepend of QString, and then append new text to the QPlainTextEdit. But problem is scroll bar goes down right after I append text to my QPlainTextEdit, What I want is keep the scroll bar at upper boundary.
Just like scroll bar remains at lower boundary in previous scenario.