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 PyQt4.QtGui.QTreeView:

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

Same example but in a PyQt4.QtGui.QTableView:

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

And now inside a PyQt4.QtGui.QComboBox:

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

Classes