Reputation: 293
I'm trying to use the QtContacts module. I'm using ubuntu artful and qt 5.10
I've tried this:
sudo apt-get install qml-module-qtcontacts
and this:
sudo apt-get install qtdeclarative5-qtcontacts-plugin
I put in the .pro file: QT += androidextras contacts
, but I get the message: Project ERROR: Unknown module(s) in QT: contacts
I also tried this answer: How to install a missing Qt module?
But the module doesn't appear in the modules list:
What did I miss?
I downloaded the qt-unified-linux-x64-3.0.2-online.run in this link: https://www.qt.io/download
Upvotes: 0
Views: 4043
Reputation: 10047
I would try fetching from here, and install with configure/make/make install
.
Looking at this documentation, it seems that there is a Contacts API, and a Contacts QML plugin.
Looking at the pro file in this example, there is no contact
module appended to QT
, but a CONFIG
entry like this:
CONFIG += mobility
MOBILITY = contacts
Upvotes: 1