PDA

View Full Version : Synchonise both sliders beween two QGraphicsScene



skimpax
14th July 2009, 20:56
Hi,

I am a beginner to Qt... so my question may look trivial...

I have 2 QGraphicsScene which are exactly the same about sizing, they both contains the same kind of items, only the items positions can differ between both scenes.

My scenes sizing auto creates an horizontal slider to move left/right.

I just want to connect both sliders so that when I move one with the mouse, the other one is also moved the same way, so that both scene/views are kept synchronized.

I did not found solution looking at Scene documentation. Any idea ?

Thanks.

wysota
14th July 2009, 21:24
Take a look at QScrollBar, especially the signals and slots it provides.

skimpax
16th July 2009, 13:10
I will have a look,
Thanks.