Hi, all

In my situation, I have several QFrames in the QSplitter (QFrame can be added or deleted dynamically by user). When resizing the QFrame by mouse on the QSplitter, in default, for example (only considering the horizontal orientation):

------- in default -------
before resizing

parent window width: 200
QFrame A width: 100
QFrame B width: 100

after resize:

parent window width: 200
QFrame A width: 150
QFrame B width: 50
------------------------

and I want when resize the QFrame, the parent window will grow or shrink with its child QFrame.

-------- I want ---------
before resizing

parent window width: 200
QFrame A width: 100
QFrame B width: 100

after resize:

parent window width: 250 (grow with its child)
QFrame A width: 150
QFrame B width: 100 (keep its size)
-------------------------

So, any ideas?


Thank you in advance!


Tang Tao