Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can we disable autoscroll property of QTextedit?

Can we disable autoscroll property of QTextedit?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 7.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

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

    Pratik Agrawal

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      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 ;).


      Code is poetry

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved