Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can we disable autoscroll property of QTextedit?



  • In some cases i don't want the auto scroll property of QTextedit.



  • This is one of the options:

    @
    QScrollBar *sb = textEdit->verticalScrollBar();
    sb->setValue(sb->minimum());
    @

    But I doubt it's the best option.
    I'm also looking for a similar one, only that I want auto scroll alway on ;).


Log in to reply