Qt Contacts
A contact is the digital representation of a person, group, or entity that is stored in a platform-specific manner. A single contact may consist of details that are stored in several different datastores, and that are only relevant in different contexts.
Developers can write platform-independent implementations of a contact manager engine, which may unify one or more platform-specific contact backends. This enables client applications to request contact data from local or remote backends in a platform-independent and datastore-agnostic manner.
Client applications can retrieve, modify, or delete contacts, as well as sort or filter contacts and access them as a list. In addition, they can import and export contacts in vCard format.
Getting Started
To include the definitions of the module's classes, use the following directive:
#include <QtContacts>
To use the C++ library in your application, add the following configuration option to your .pro
file:
QT += contacts
To use the QML types in your application, add the following import statement to your .qml
file:
import QtContacts 5.0
Related Information
Guides
- Qt Contacts Overview
- Qt Contacts API Usage
- Qt Contacts Action API
- Qt Contacts Asynchronous API
- Qt Contacts Synchronous API
- Qt Contacts Manager Engines
- Qt Contacts C++ API - overview of the C++ API
- Qt Contacts QML API - overview of the QML API
References
- Qt Contacts C++ Classes - list of C++ classes
- Qt Contacts QML Types - list of QML types
Examples
- Qt Quick Contacts List view
Import contact information from vCard files, select a backend for volatile memory or persistent storage, as well as list, add, edit, and remove contacts.