Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to scroll TreeView from application?
Qt 6.11 is out! See what's new in the release blog

How to scroll TreeView from application?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 675 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    I have an itemDelegate in TreeView and I want that if it gets clicked it goes on top of screen, so I need to scroll TreeView by script in QML;
    How can it be possible? (official doc did not give an answer)

    K 1 Reply Last reply
    0
    • K Kofr

      I have an itemDelegate in TreeView and I want that if it gets clicked it goes on top of screen, so I need to scroll TreeView by script in QML;
      How can it be possible? (official doc did not give an answer)

      K Offline
      K Offline
      Kofr
      wrote on last edited by Kofr
      #2

      Solution is to control flickableitem property
      treeview1.flickableItem.contentY
      hope it will help

      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