PDA

View Full Version : synchronize scrollbar



jackajack01
6th September 2012, 14:48
hello

I have 2 graphicsview each with a separate scrollbar, as seen in the image. I wonder how I can synchronize, so that the move one the other moves too.

thanks

8192

emarti
6th September 2012, 23:38
hello

I have 2 graphicsview each with a separate scrollbar, as seen in the image. I wonder how I can synchronize, so that the move one the other moves too.

thanks

8192

If you're using QScrollArea with verticalscrollbar, you may use "scrollArea->verticalScrollBar()->setRange" and "scrollArea->verticalScrollBar()->setvalue".