PDA

View Full Version : QStackedLayout vs. QStackedWidget



bruccutler
13th March 2007, 00:15
Hello all:
What is the advantage (if any) of using QStackedWidget over QStackedLayout? I'm having a strange occurence when I add an element to a QStackedLayout. The window appears while I'm constructing it.

I'm just wondering if this problem might go away if I use a QStackedWidget instead of a QStackedLayout?

- BRC

wysota
13th March 2007, 00:43
QStackedWidget gives you a widget interface to the stack, whereas the layout does not. The former uses the latter. Usually it's better to use QStackedWidget.