-
Notifications
You must be signed in to change notification settings - Fork 11
TreeWidget
Binding for QTreeWidget. Uses TreeWidgetItems to hold information. When widgets or strings are added to the TreeWidget, a TreeWidgetItem is automatically created and returned.
Additions to the tree widget that have fewer than the specified number of columns will have empty-string entries for the rest. Additions that have more than the set number of columns will not show the additional data.
currentItemChanged (TreeWidgetItem current, TreeWidgetItem previous)
currentRowChanged (int value)
currentTextChanged (String value)
itemActivated (TreeWidgetItem item)
itemExpanded (TreeWidgetItem item)
itemSelectionChanged ()
void clear ()
int currentColumn ()
void headerLabels (String[] labels)
TreeWidgetItem itemAbove (TreeWidgetItem item)
TreeWidgetItem itemBelow (TreeWidgetItem item)
void removeItemWidget (TreeWidgetItem item, int column)
TreeWidgetItem[] selectedItems ()
TreeWidgetItem takeItemAt (int column)
TreeWidgetItem itemAt (int column)
int itemCount ()
The following two functions add new entries to the table. If an array of strings is given as the first argument to the function, then a new TreeWidgetItem is created and added to the table. If a TreeWidgetItem is specified as the first argument, it is moved into the tree. 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])
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.
TreeWidgetItem currentItem ([TreeWidgetItem item])
int columnWidth (int column, [int width])
Bool columnHidden (int column, [Bool hidden])
Bool wordWrap (int column, [Bool doWrap])
int columnCount ([int columnCount])
TreeWidgetItem[] findItems (String pattern, [MatchFlag flag])
Widget itemWidget (TreeWidgetItem item, int column, [Widget w])
int sortColumn ([int column, SortOrder s])
int indexOf (TreeWidgetItem item)