Houdini 22.0 Python scripting hou hou.qt

hou.qt.TreeView class

A QTreeView with item highlighting, expansion state management, and context menus.

On this page

This class inherits from Qt’s QtWidgets.QTreeView class.

It’s generally used instead of QTreeView in python panels as it adds the expansion state and highlight mechanisms while keeping the underlying QTreeView API intact. modelview/TreeView.py is now just an alias to this as its functionality was simply rolled into this class.

Methods

Signals

contextMenuAboutToOpen(menu, index)

Emitted after createContextActions populates the menu and before it is shown. menu is the QtWidgets.QMenu. index is the QtCore.QModelIndex of the right-clicked item (before column normalization).

hou.qt