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

How to scroll TreeView from application?



  • 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)



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


Log in to reply