Tool Tree Widget (tooltree)

Tool Tree

A ToolTree widget presenting the user with a set of actions organized in a tree structure.

class orangecanvas.gui.tooltree.ToolTree(parent=None, **kwargs)[source]

Bases: PyQt5.QtWidgets.QWidget

A ListView like presentation of a list of actions.

triggered(QAction)

Signal emitted when an action in the widget is triggered.

hovered(QAction)

Signal emitted when an action in the widget is hovered.

setFlattened(flatten)[source]

Show the actions in a flattened view.

flattened()[source]

Are actions shown in a flattened tree (a list).

setRootIndex(index)[source]

Set the root index

rootIndex()[source]

Return the root index.

view()[source]

Return the QTreeView instance used.

setActionRole(role)[source]

Set the action role. By default this is Qt.UserRole

ensureCurrent()[source]

Ensure the view has a current item if one is available.

eventFilter(self, QObject, QEvent) → bool[source]