Class WStackedWidget


public class WStackedWidget extends WContainerWidget
A container widget that stacks its widgets on top of each other.

This is a container widget which at all times has only one item visible. The widget accomplishes this using setHidden(bool) on the children.

Using getCurrentIndex() and setCurrentIndex() you can retrieve or set the visible widget.

When calling the above setCurrentIndex(), this will fire the currentWidgetChanged() signal. This allows developers to know when the current visible widget has changed and what the new visible widget is.

WStackedWidget, like WContainerWidget, is by default not inline.

CSS

The widget is rendered using an HTML <div> tag and does not provide styling. It can be styled using inline or external CSS as appropriate.

See Also: