# `QLoggingTableModel`

digraph inheritance14efcdae4f { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Filterer" [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="A base class for loggers and handlers which allows them to share"]; "Handler" [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="Handler instances dispatch logging events to specific destinations."]; "Filterer" -> "Handler" [arrowsize=0.5,style="setlinewidth(0.5)"]; "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)"]; "QAbstractTableModel" [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="QAbstractTableModel(parent: QObject|None = None)"]; "QAbstractItemModel" -> "QAbstractTableModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QLoggingTableModel" [URL="#taurus.qt.qtgui.table.QLoggingTableModel",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"]; "QAbstractTableModel" -> "QLoggingTableModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Handler" -> "QLoggingTableModel" [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)"]; "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 QLoggingTableModel(parent=None, capacity=500000, freq=0.25)

  Import from `taurus.qt.qtgui.table` as:

      from taurus.qt.qtgui.table import QLoggingTableModel

  DftColSize = (PyQt5.QtCore.QSize(80, 20), PyQt5.QtCore.QSize(200, 20), PyQt5.QtCore.QSize(300, 20), PyQt5.QtCore.QSize(180, 20), PyQt5.QtCore.QSize(240, 20))
  DftFont = <PyQt5.QtGui.QFont object>
  close()

    Tidy up any resources used by the handler.

    This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.

  columnCount(self, parent: QModelIndex = QModelIndex()) → int
  data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) → Any
  emit(record)

    Do whatever it takes to actually log the specified logging record.

    This version is intended to be implemented by subclasses and so raises a NotImplementedError.

  flush()

    Ensure all logging output has been flushed.

    This version does nothing and is intended to be implemented by subclasses.

  getRecord(index)
  headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) → Any
  insertRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) → bool
  removeRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) → bool
  rowCount(self, parent: QModelIndex = QModelIndex()) → int
  sort(self, column: int, order: Qt.SortOrder = Qt.AscendingOrder)
  timerEvent(self, a0: QTimerEvent | None)
  updatePendingRecords()