[PyQt] Stacking QWidgets vertically?

Kurt Schwarz kurtschwarz at gmail.com
Mon Sep 21 13:44:10 BST 2009

A QSplitter isn't what I am looking for because "A splitter lets the
user control the size of child widgets by dragging the boundary
between the children." I don't want the user to be able to re-size the
widgets, sorry if I wasn't clear about this before.

Here is a picture to better illustrate what I am looking for:

In this example I have to set the x, y cords manually im looking for
something more automated as those boxes are generated with dynamic

On Sun, Sep 20, 2009 at 11:49 PM, Christian Caron <ccaron at fattoc.com> wrote:
> What was missing from the QSplitter to achieve what you are looking for?
> On Sep 20, 2009, at 8:45 PM, Kurt Schwarz wrote:
>> On Sun, Sep 20, 2009 at 11:38 PM, Christian Caron <ccaron at fattoc.com>
>> wrote:
>>> Maybe a QSplitter?
>>> On Sep 20, 2009, at 8:33 PM, Kurt Schwarz wrote:
>>>> What would be the best way to do something like this:
>>>> http://img15.imageshack.us/img15/5707/badpaintskills.png Where all the
>>>> teal boxes are the same width but their height varies and they go from
>>>> the bottom up. I have tried using a QVBoxLayout but it just spaced
>>>> each of them out evenly.
>>>> Is there anyway to do this using QLayout, or will I have to just use
>>>> x, y cords for each of the QWidgets?
>>>> _______________________________________________
>>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>> Humm I tried using a QSplitter and it didn't do quite what I was
>> looking for. I just noticed the FlowLayout example that comes with
>> PyQt and I'm going to try and create something similar to that.

More information about the PyQt mailing list