[PySide] sliding widgets into position
Frank Rueter | OHUfx
frank at ohufx.com
Thu Apr 26 08:42:06 CEST 2012
end of day for me and my brain has gone numb, so I'm probably missing
I'm trying to create a widget with three areas: top, middle and bottom
(using QFrames as place holders for now).
The middle frame is meant to be visible from the start containing some
text and other widgets, when the button is pushed, the top frame is
meant to slide down into view and the bottom frame is meant to slide up
into view, so that I'm left with a controllable vertical arrangements of
those three frames.
Here is my ugly attempt so far:
Things do move but I can't control the start and end positions properly
and the GridLayout adjusts itself when showing the extra frames, so that
the middle frame jumps. I have no idea how to set the size hints etc. to
define the start and end positions of the sliding QFrames generically
and avoid the jumping middle frame (might have to go with an alternative
approach to QGridLayout?!).
Any help would be greatly appreciated.
More information about the PySide