qt - How to scroll QPlainTextEdit to top? -
After inserting in some text, I would like to automatically scroll to the top of the QPlainTextEdit widget How do I know this?
inherited from QTextEdit as
QAbstractScrollArea , you can move its scrollbar:
QScrollBar * vScrollBar = yourTextEdit-> Vertical ScrollBar (); VScrollBar-> TriggerAction (QScrollBar :: SliderToMinimum);
Comments
Post a Comment