Synchronize tableview scrollbars
-
wrote on 12 May 2016, 07:04 last edited by
Hi,
i have 2 Tableviews in my qml file. One on the left side and one on the right. Both have the same amount of columns and rows, but different cell data.
If the user scrolls in one of the tableviews the other should also scroll.
Does anyone know a good solution for this? I did not find any events like 'onScroll' or so.I also tried to put all the data in one table but it looks terrible.
-
Hi,
i have 2 Tableviews in my qml file. One on the left side and one on the right. Both have the same amount of columns and rows, but different cell data.
If the user scrolls in one of the tableviews the other should also scroll.
Does anyone know a good solution for this? I did not find any events like 'onScroll' or so.I also tried to put all the data in one table but it looks terrible.
@PhTe
flickableItem
is your friend here. It could be done as follows://Inside some TableView flickableItem.onContentYChanged: { mirror.flickableItem.contentY = flickableItem.contentY //mirror = id of other table }
-
wrote on 18 Feb 2022, 12:45 last edited by
I found it very helpful