-
Notifications
You must be signed in to change notification settings - Fork 11
StackedWidget
ben-sangster edited this page Nov 10, 2010
·
5 revisions
A widget which allows for the display of several layers of widgets stacked upon each other.
currentChanged (int val)
widgetRemoved (int val)
Number add (Widget widget, [int index])
-
Add widget to the stacked widget.
-
If an integer is sent as a second parameter, the widget will be inserted at that index.
void remove (Widget widget)
- Remove widget from the stacked widget
int count ()
- Returns the number of widgets in the stacked widget.
int/void currentIndex ([int index])
-
If called with an argument, set the stackedWidget to the specified index.
-
If not called with an argument, return the stackedWidget.
Widget/void currentWidget ([ Widget widget])
-
If called with an argument, change so that widget is the current widget.
-
If not called with an argument, return the current widget.
Widget at (int index)
- Returns the widget at index.
Number indexOf (Widget widget)
- Returns the index of widget.