TaurusBaseModel

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

The base class for all Taurus Qt models.

Import from taurus.qt.qtcore.model as:

from taurus.qt.qtcore.model import TaurusBaseModel
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, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
dataSource()[source]
flags(self, index: QModelIndex) Qt.ItemFlags[source]
hasChildren(self, parent: QModelIndex = QModelIndex()) bool[source]
headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) QModelIndex[source]
parent(self, child: QModelIndex) QModelIndex[source]
parent(self) Optional[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]