Qt Quick Contacts List View ExampleContacts ListThis example shows how to write a simple Contacts browsing application with the Contacts QML API MotivationThis application was written to provide an example to developers of how to use the Qt Quick Contacts APIs. It provides an example of how to use the Qt Contacts library to:
Use CaseIts is common necessity for people to keep well organized and persistent lists of all their friends, relatives, business partners and etc. All these contacts can have associate information such as phone numbers, email addresses, relations between other contacts. This sample application provides a simple contacts browser that allows users to retrieve all their Contacts and information associated with them. Users can add new contacts, modify or delete existing ones. InterfaceThe interface is organized into a QML List View, showing all the available contacts. Contacts can be added or modified using the buttons at the bottom of the contact list. Selecting the contact is simply done by clicking the mouse on the desired list element, that opens the selected contact in editing view. Here we see the ContactModel used with a QML List View to show a basic information of contacts. In edit mode you can delete a contact by using delete button at the bottom of the window or you can modify a contact's details just by entering a new value in text input fields. Modified values are indicated in red color and they must be saved to take affect or changes can be discarded by using cancel button which is also placed at the bottom of the window. Here we can see an example of how a contact looks when opened in an editing view. This example application is designed to introduce very basic usage of the API and get you stared with QtContacts library. Files: |