Qt World Summit: Register Today!

scrollTo in QTreeView is not working

  • hi,
    I have a QmodelIndex (currindex), i want to scrollTo that index in QTreeView programatically? I used scrollTo in TreeView but it is not getting scroll to that modelIndex in view but if I press down arrow it is indeed on the row i want. but vertical scroll is not updated properly. please share any code snippets?


  • Lifetime Qt Champion


    Can you share a minimal sample code that reproduces this behavior ?

Log in to reply