ContactModelThe ContactModel element provides access to contacts from the contacts store. More... Inherits QtObject Detailed DescriptionThis element is part of the QtContacts module. ContactModel provides a model of contacts from the contacts store. The contents of the model can be specified with filter, sortOrders and fetchHint properties. Whether the model is automatically updated when the store or contacts changes, can be controlled with ContactModel::autoUpdate property. There are two ways of accessing the contact data: via model by using views and delegates, or alternatively via contacts list property. Of the two, the model access is preferred. Direct list access (i.e. non-model) is not guaranteed to be in order set by sortOrder. At the moment the model roles provided by ContactModel are display, decoration and contact. Through the contact role can access any data provided by the Contact element. See also RelationshipModel, Contact, and QContactManager. |