|
def | __init__ (self, parent=None) |
|
def | rowCount (self, parent=None) |
| Reimplemented from QAbstractListModel.
|
|
def | addRoleName (self, role, name) |
|
def | roleNames (self) |
|
def | data (self, index, role) |
| Reimplemented from QAbstractListModel.
|
|
def | getItem (self, index) |
| Get an item from the list.
|
|
def | items (self) |
| The list of items in this model.
|
|
def | setItems (self, items) |
| Replace all items at once. More...
|
|
def | appendItem (self, item) |
| Add an item to the list. More...
|
|
def | insertItem (self, index, item) |
| Insert an item into the list at an index. More...
|
|
def | removeItem (self, index) |
| Remove an item from the list. More...
|
|
def | clear (self) |
| Clear the list.
|
|
def | setProperty (self, index, property, value) |
|
def | sort (self, fun) |
| Sort the list. More...
|
|
def | find (self, key, value) |
| Find a entry by key value pair. More...
|
|
Convenience base class for models of a list of items.
This class represents a list of dictionary objects that can be exposed to QML. It is intended primarily as a read-only convenience class but supports removing elements so can also be used for limited writing.