TaurusModelModel

Inheritance diagram of TaurusModelModel
class TaurusModelModel(items=None)[source]

A Qt data model for describing taurus models

Import from taurus.qt.qtgui.panel as:

from taurus.qt.qtgui.panel import TaurusModelModel
addItem(item)[source]

appends an item to the internal list

Parameters:

item (TaurusModelItem)

clearAll()[source]

clears all rows

data(index, role=0)[source]

reimplemented from Qt.QAbstractListModel

dropMimeData(data, action, row, column, parent)[source]

reimplemented from Qt.QAbstractListModel

dumpData()[source]

returns a deep copy of the internal item list representation

flags(index)[source]

reimplemented from Qt.QAbstractListModel

insertItems(row, items)[source]

convenience method to add new rows by passing a list of strings ()

Parameters:
  • row (int) – the row of the list at which the item insertion starts, if row==-1, items will be appended to the list

  • items (seq) – a sequence items to add to the list. The objects in the sequence can be either strings, TaurusModelItem objects or tuples of valid arguments for initializing TaurusModelItem objects

insertRows(position=None, rows=1, parentindex=None, items=None)[source]

reimplemented from Qt.QAbstractListModel

mimeData(indexes)[source]

reimplemented from Qt.QAbstractListModel

mimeTypes()[source]

reimplemented from Qt.QAbstractListModel

removeRows(position, rows=1, parentindex=None)[source]

reimplemented from Qt.QAbstractListModel

rowCount(index=<PyQt5.QtCore.QModelIndex object>)[source]

reimplemented from Qt.QAbstractListModel

setData(index, value=None, role=2)[source]

reimplemented from Qt.QAbstractListModel

swapItems(index1, index2)[source]

swap the items described by index1 and index2 in the list