Results 1 to 3 of 3

Thread: Synchonise both sliders beween two QGraphicsScene

  1. #1
    Join Date
    Jul 2009
    Location
    France
    Posts
    17
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Synchonise both sliders beween two QGraphicsScene

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Synchonise both sliders beween two QGraphicsScene

    Take a look at QScrollBar, especially the signals and slots it provides.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2009
    Location
    France
    Posts
    17
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Synchonise both sliders beween two QGraphicsScene

    I will have a look,
    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.