Fagner Fonseca
Fagner Fonseca

Reputation: 293

How can I install a Qt Module and use it in my project

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:

enter image description here

What did I miss?

QtVersion: enter image description here

I downloaded the qt-unified-linux-x64-3.0.2-online.run in this link: https://www.qt.io/download

Upvotes: 0

Views: 4043

Answers (1)

p-a-o-l-o
p-a-o-l-o

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

Related Questions