PDA

View Full Version : QSplitter synchronization



sreedhar
11th July 2006, 13:03
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

yogeshm02
11th July 2006, 17:09
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.

high_flyer
11th July 2006, 17:22
this wont work since moveSplitter() is protected.
For that to work he will have to subclass QSplitter.