pynaviz.qt.widget_list_selection#

Classes

ChannelList(model[, parent])

ChannelListModel(data)

A model to handle the list of channels with checkboxes.

DynamicSelectionListView

A QListView that allows dynamic selection of multiple items with checkboxes.

class pynaviz.qt.widget_list_selection.ChannelList(model, parent=None)[source]#

Bases: QDialog

Parameters:
checkStateChanged#

A dialog listing selectable channels (e.g., for visibility toggling).

Parameters:
  • model (ChannelListModel) – Data model that holds the list of channel states.

  • parent (QWidget, optional) – Parent widget.

staticMetaObject = PySide6.QtCore.QMetaObject("ChannelList" inherits "QDialog": Methods:   #41 type=Signal, signature=checkStateChanged(int), parameters=int )#
class pynaviz.qt.widget_list_selection.ChannelListModel(data)[source]#

Bases: QAbstractListModel

A model to handle the list of channels with checkboxes.

Parameters:

data (Any)

checkStateChanged#
data(index, role=None)[source]#

What to display in the list view.

flags(index)[source]#

Flags that determines what one can do with the items.

rowCount(parent=None)[source]#
setData(index, value, role)[source]#

Write data to the model.

Parameters:
  • index (QModelIndex) – The index of the item to modify.

  • value (Any) – The new value to set.

  • role (Qt.ItemDataRole) – The role of the data to set.

staticMetaObject = PySide6.QtCore.QMetaObject("ChannelListModel" inherits "QAbstractListModel": Methods:   #76 type=Signal, signature=checkStateChanged(int), parameters=int )#
class pynaviz.qt.widget_list_selection.DynamicSelectionListView[source]#

Bases: QListView

A QListView that allows dynamic selection of multiple items with checkboxes.

on_check_state_changed(changed_row)[source]#
selectionCommand(index, event=None)[source]#
staticMetaObject = PySide6.QtCore.QMetaObject("DynamicSelectionListView" inherits "QListView": )#