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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -