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. How to cancel autoScroll in QTreeView?
Forum Update on Monday, May 27th 2025

How to cancel autoScroll in QTreeView?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views
  • 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.
  • D Offline
    D Offline
    dezintegrator
    wrote on last edited by
    #1

    Hi!
    I have the QTreeView table. In this table alltimes add new items. My table autoscroll to new item. How to cancel it?
    Only user must to scroll table.

    I used setAutoScroll( false ), but it doesn't work.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Just to recap your question

      1. You are adding the items to TreeView
      2. As the items are added, you don't want scrolling to be enabled. You want the scrolling to be invisible.
      3. When the user clicks, scrolling to visible. Is that correct ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dezintegrator
        wrote on last edited by
        #3

        Yes, all right

        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