# `TaurusBaseModel`

digraph inheritance3101f2f435 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "QAbstractItemModel" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractItemModel(parent: QObject|None = None)"]; "QObject" -> "QAbstractItemModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject|None = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusBaseModel" [URL="#taurus.qt.qtcore.model.TaurusBaseModel",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The base class for all Taurus Qt models."]; "QAbstractItemModel" -> "TaurusBaseModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Logger" -> "TaurusBaseModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class TaurusBaseModel(parent=None, data=None)

  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
  columnIcon(column)
  columnSize(column)
  columnToolTip(column)
  createNewRootItem()
  data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) → Any
  dataSource()
  flags(self, index: QModelIndex) → Qt.ItemFlags
  hasChildren(self, parent: QModelIndex = QModelIndex()) → bool
  headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) → Any
  index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) → QModelIndex
  parent(self, child: QModelIndex) → QModelIndex
  parent(self) → QObject | None
  pyData(index, role=0)
  refresh(refresh_source=False)
  role(column, depth=0)
  roleIcon(role)
  roleSize(role)
  roleToolTip(role)
  rowCount(self, parent: QModelIndex = QModelIndex()) → int
  selectables()
  setDataSource(data_src)
  setSelectables(seq_elem_types)
  setupModelData(data)