Skip to content

Tree Model

OmeroTreeModel

OmeroTreeModel

OmeroTreeModel(parent=None)

Bases: QStandardItemModel

Lazy-loading model for the OMERO Project → Dataset → Image tree.

Call :meth:load_root after the gateway is connected to populate the top level.

load_root

load_root(conn, owner_id: int | None = None) -> None

Populate the root level (projects + orphaned containers).

Parameters:

Name Type Description Default
conn BlitzGateway

Connected gateway.

required
owner_id int | None

If given, filter objects to this experimenter.

None

fetch_children

fetch_children(index: QModelIndex) -> None

Fetch children for the node at index in a background thread.

get_wrapper staticmethod

get_wrapper(index: QModelIndex)

Return the OMERO wrapper object for index, or None.

NodeType

NodeType

Bases: IntEnum