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

Description

A widget which allows for separating widgets into tabbed.

Signals

currentChanged (int val)

Function Calls

Number add (Widget widget, String label, [int index])

  • Add widget as a tab on the tab widget with the label label.

  • If an integer is sent as a third parameter, the widget will be inserted at that index with label label.

void remove (int index)

  • Remove the tab at index from the stacked widget.

int count ()

  • Returns the number of tabs 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 tab.

  • If not called with an argument, return the current tab.

Widget at (int index)

  • Returns the widget at index.

Number indexOf (Widget widget)

  • Returns the index of widget.

String tabText (int index, [String label])

  • If called with a second argument, set the label of the tab at index to label.

  • If called without a second argument, return the label of the tab at index.

API

tabWidget

Clone this wiki locally