[PyQt] How to get index of splitter

F.A.Pinkse fapinkse at gmail.com
Tue Jun 15 16:01:03 BST 2010


I want to change the position of a splitter handle programmaticly.
I use the spltter.setSizes(). that change the posotion alright, but can 
figure out the logic when using different value's.

When I do a splitter.getRange(<index>) I get the begin and end positions 
of the splitter.
 From these I can easily generate the proper value's for splitter.setSizes.

The.getRange() needs an index as argument but how do I get the index of 
the splitter.

Working wit PyQt4 on Python3

With best regards,


More information about the PyQt mailing list