Results 1 to 3 of 3

Thread: QSplitter synchronization

  1. #1
    Join Date
    Feb 2006
    Posts
    60
    Thanks
    21
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QSplitter synchronization

    Hi,
    I have QSplitters in two different widgets, i want to synchronize the splitters, i.e if i move the handle of any one of the splitters, the other handle in the second should move.

    i.e., moving any of the handles has an impact on the other


    please provide code snippet if possible.

    Thanking you,

    regards

  2. #2
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QSplitter synchronization

    You can connect splitterMoved() signal of one splitter to a custom slot in which you can call moveSplitter() of other. I've not tried, but think it will do.

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QSplitter synchronization

    this wont work since moveSplitter() is protected.
    For that to work he will have to subclass QSplitter.

Similar Threads

  1. qSplitter settings
    By ovidiu.sabou in forum Qt Tools
    Replies: 4
    Last Post: 14th March 2006, 18:24
  2. To put Image on QSplitter
    By moizahamedv in forum Qt Programming
    Replies: 10
    Last Post: 3rd March 2006, 12:05
  3. QSplitter
    By Solarity in forum Newbie
    Replies: 2
    Last Post: 10th February 2006, 17:05

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.