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

Description

Utility class for TreeWidget. Contains information for use by the parent tree.

Functions

TreeWidgetItem child (int index)

int childCount ()

int columnCount ()

TreeWidgetItem parent ()

void sortChildren (int column, SortOrder s)

TreeWidgetItem takeChild (int column)

TreeWidgetItem[] takeChildren ()

TreeWidget treeWidget ()

int indexOf ([TreeWidgetItem]] child)

The following functions are get/set functions. If the optional argument is given, then the function will set, as well as get, the specified value.

Object data (int column, [Object o])

Bool hidden ([Bool hidden])

String text (int column, [String text])

Bool disabled ([bool disabled])

When the following two functions are called on a TreeWidgetItem add new TreeWidgetItems to it as children. If an array of strings is given as the first argument to the function, then a new TreeWidgetItem is created. If a TreeWidgetItem is specified as the first argument, it is moved into the new location. Programmers can also associate Javascript Objects with the TreeWidgetItem by specifying the object as the second argument and the desired column as the third. Specifying an Object is optional, but if given, a column must also be given.

TreeWidgetItem add (String[] values, [Object o, int column])

TreeWidgetItem add (TreeWidgetItem item, [Object o, int column])

API

treeWidget

Clone this wiki locally