QLoggingTableModel

Inheritance diagram of QLoggingTableModel
class QLoggingTableModel(parent=None, capacity=500000, freq=0.25)[source]

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()[source]

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[source]
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
emit(record)[source]

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()[source]

Ensure all logging output has been flushed.

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

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