TaurusBaseModel

Inheritance diagram of TaurusBaseModel
class TaurusBaseModel(parent=None, data=None)[source]

Bases: PyQt5.QtCore.QAbstractItemModel, taurus.core.util.log.Logger

The base class for all Taurus Qt models.

ColumnNames = ()
ColumnRoles = ((),)
DftFont = <PyQt5.QtGui.QFont object>
columnCount(self, parent: QModelIndex = QModelIndex())int[source]
columnIcon(column)[source]
columnSize(column)[source]
columnToolTip(column)[source]
createNewRootItem()[source]
data(self, QModelIndex, role: int = Qt.DisplayRole)Any[source]
dataSource()[source]
flags(self, QModelIndex)Qt.ItemFlags[source]
hasChildren(self, parent: QModelIndex = QModelIndex())bool[source]
headerData(self, int, Qt.Orientation, role: int = Qt.DisplayRole)Any[source]
TaurusBaseModel.index(self, int, int, parent: QModelIndex = QModelIndex()) -> QModelIndex[source]
parent(self, QModelIndex)QModelIndex[source]

parent(self) -> QObject

pyData(index, role=0)[source]
refresh(refresh_source=False)[source]
role(column, depth=0)[source]
roleIcon(role)[source]
roleSize(role)[source]
roleToolTip(role)[source]
rowCount(self, parent: QModelIndex = QModelIndex())int[source]
selectables()[source]
setDataSource(data_src)[source]
setSelectables(seq_elem_types)[source]
setupModelData(data)[source]