PDA

View Full Version : Layering QWidgets inside a QWidget



bunjee
29th October 2008, 10:00
Hey there,

I'm trying to develop a widget that can :
- Display several layered / on top of each other widgets.

First off has anyone ever developped a QLayout / QWidget that can do that ?

In my implementation every time I resize my main widget I'm resizing every child widgets.

I've implemented a minimumSizeHint in my widget that takes the layered widget minimum size into account.

Only problem is my minimumSizeHint never gets called when resizing manually the window.

So I get my widgets layered but my main widget window doesn't take their minimum size into account.

How can I solve this ?

Thanks.

lyuts
29th October 2008, 11:41
Sounds like you need QStackedWidget.

bunjee
2nd November 2008, 19:25
Thanks,

Since QStrackedLayout wasn't enough,
I had to developp my own layout, this turned out to be easier to do than I expected.