Skip to content
ben-sangster edited this page Nov 10, 2010 · 5 revisions

Description

A widget which allows for the display of several layers of widgets stacked upon each other.

Signals

currentChanged (int val)

widgetRemoved (int val)

Function Calls

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.

API

stackWidget

Clone this wiki locally