taurus.qt.qtcore.model

This package provides taurus Qt models

Pure PyQt view based widgets can be used to display the contents of the several model classes provided here.

Displaying the device list in a PyQt5.Qt.QTreeView:

view = Qt.QTreeView()
db = taurus.Database()
model = taurus.qt.qtcore.TaurusDbDeviceModel()
model.setDataSource(db)
view.setModel(model)

Same example but in a PyQt5.Qt.QTableView:

view = Qt.QTableView()
db = taurus.Database()
model = taurus.qt.qtcore.TaurusDbPlainDeviceModel()
model.setDataSource(db)
view.setModel(model)

And now inside a PyQt.Qt.QComboBox:

view = Qt.QComboBox()
db = taurus.Database()
model = taurus.qt.qtcore.TaurusDbPlainDeviceModel()
model.setDataSource(db)
view.setModel(model)

Classes

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

The base class for all Taurus Qt models.

(more info)

class TaurusBaseProxyModel(parent=None)[source]

A taurus base Qt filter & sort model

(more info)

class TaurusBaseTreeItem(model, data, parent=None)[source]

A generic node

(more info)

class TaurusDbBaseModel(parent=None, data=None)[source]

The base class for all Taurus database Qt models. By default, this model represents a plain device perspective of the underlying database.

(more info)

class TaurusDbBaseProxyModel(parent=None)[source]

(more info)

class TaurusDbDeviceClassModel(parent=None, data=None)[source]

A Qt model that structures class elements in a tree organized as:

  • <Class>
    • <Device>
      • <Attribute>

(more info)

class TaurusDbDeviceClassProxyModel(parent=None)[source]

A Qt filter & sort model for the TaurusDbDeviceClassModel

(more info)

class TaurusDbDeviceModel(parent=None, data=None)[source]

A Qt model that structures device elements in a 3 level tree organized as:

  • <domain>

  • <family>

  • <member>

(more info)

class TaurusDbDeviceProxyModel(parent=None)[source]

A Qt filter & sort model for model for the taurus models: - TaurusDbBaseModel - TaurusDbDeviceModel - TaurusDbSimpleDeviceModel - TaurusDbPlainDeviceModel

(more info)

class TaurusDbPlainDeviceModel(parent=None, data=None)[source]

A Qt model that structures device elements in 1 level tree. Device nodes will have attribute child nodes if the device is running.

(more info)

class TaurusDbPlainServerModel(parent=None, data=None)[source]

(more info)

class TaurusDbServerModel(parent=None, data=None)[source]

A Qt model that structures server elements in a tree organized as:

  • <Server name>

  • <Server instance>

  • <Class>

  • <Device>

  • <Attribute>

(more info)

class TaurusDbServerProxyModel(parent=None)[source]

A Qt filter & sort model for the TaurusDbServerModel

(more info)

class TaurusDbSimpleDeviceAliasModel(parent=None, data=None)[source]

A Qt model that structures device elements in 1 level tree with device alias as node leafs. This model contains only 1 column.

(more info)

class TaurusDbSimpleDeviceModel(parent=None, data=None)[source]

A Qt model that structures device elements in 1 level tree with device name as node leafs. This model contains only 1 column.

(more info)

class TaurusTreeAttributeItem(model, data, parent=None)[source]

A node designed to represent an attribute

(more info)

class TaurusTreeDeviceClassItem(model, data, parent=None)[source]

A node designed to represent a device class

(more info)

class TaurusTreeDeviceDomainItem(model, data, parent=None)[source]

A node designed to represent a the domain part of a device name

(more info)

class TaurusTreeDeviceFamilyItem(model, data, parent=None)[source]

A node designed to represent a the family part of a device name

(more info)

class TaurusTreeDeviceItem(model, data, parent=None)[source]

A node designed to represent a device

(more info)

class TaurusTreeDeviceMemberItem(model, data, parent=None)[source]

A node designed to represent a the member part of a device name

(more info)

class TaurusTreeDevicePartItem(model, data, parent=None)[source]

A node designed to represent a ‘part’ (or totality) of a device name

(more info)

class TaurusTreeServerItem(model, data, parent=None)[source]

A node designed to represent a server

(more info)

class TaurusTreeServerNameItem(model, data, parent=None)[source]

A node designed to represent the server name part of a server

(more info)

class TaurusTreeSimpleDeviceItem(model, data, parent=None)[source]

A node designed to represent a device (without any child nodes)

(more info)