PDA

View Full Version : synchronize scrollbar



jackajack01
6th September 2012, 15: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
7th September 2012, 00: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".