[PyQt] how to create a sub widget that is horizontally resizable (with resizable borders) within the main widget?

Doug Bell dougb at bellz.org
Wed Sep 21 01:40:26 BST 2016


Islam, Tanim S. wrote:
> Hello,
> 
> I apologize for attaching a figure, but I think this would be the
> clearest way to describe my issue, which I do not have the vocabulary
> to describe right now.
> 
> Basically, how do I construct (with perhaps QWidgets and QLayouts), a
> main window where I could shrink or expand the relative sizes of two
> sub widgets, by moving the horizontal line separating them from each
> other up and down?

Check out the documentation for QSplitter.

-Doug


More information about the PyQt mailing list