Isn't that what a Splitter is doing as part of its normal behavior?

I just tried with two QTextEdit in a splitter in QtDesigner and even in preview mode it resizes the two edit widgets whenever the slider handle is moved.

Cheers,
_