PDA

View Full Version : QSplitter ignores some widget methods



lotek
13th October 2010, 20:29
Hi,

I have following problem:
a horizontal splitter contains two vertical splitters. the left vertical splitter contains four equal widgets without any size constraints, the right vertical splitter contains two different widgets also without any size constraints. I expect that the horizontal splitter will split the window in the middle, but this is not the case. It splits the window "somewhere" and I can't recognize the rule.

How a splitter shall work in a such situation?

and some more questions ...

As I already wrote a QSplitter QSplitter seems to ignore maximum sizes (I've checked for the maximum width only).
The minimum sizes (see line 34 of the attached example) seem to be kept.

It also ignores resize(int,int) method. Somehow intelligibly, but still it is a a widget.
Is this documented?

It is possible to setLayout to a QSplitter? What will be effect of this?

The documentation states:
"The initial distribution of size between the widgets is determined by multiplying the initial size with the stretch factor." What is a stretch factor o a splitter?

thanks