pynaviz.qt.widget_list_selection#
Classes
|
|
|
A model to handle the list of channels with checkboxes. |
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:
model (ChannelListModel)
parent (QWidget | None)
- 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:
QAbstractListModelA model to handle the list of channels with checkboxes.
- Parameters:
data (Any)
- checkStateChanged#
- 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 )#