What I'm trying to do is get a scrolling view of n elements stacked on top of each other, and when they are not big enough to warrant an active scroll bar, they are pushed to the top. (So far I've managed to get similar behavior with pyQT, but the elements expand to fit the window, which I do not want. Here are some images of what I am trying to replicate:
When there is one element (two including the button), it is pushed to the top
When there are more elements, it is still all pushed to the top
And when the elements stack is too tall to fit on the screen, the scroll bar becomes active
Does anyone know how I can do this in pyQT? I can provide additional infrmation if needed. Thanks


