maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QT Mobility contacts API only showing Skype contacts? (https://talk.maemo.org/showthread.php?t=56067)

lirtex 2010-06-13 12:55

QT Mobility contacts API only showing Skype contacts?
 
Hi,

I'm using the QT Mobility API to list the contacts in my n900. From some reason, it only lists the Skype contacts (contacts which have Skype details), and not the other contacts.

I'm using libqtm-contacts version 1:1.0.0-maemo1+0m5.

Here's the sample code:

Code:

    contactManager = new QContactManager();
    QList<QContact> contacts = contactManager->contacts();
    if (!contacts.isEmpty())
    {
        foreach (const QContact cont, contacts)
        {
            QContact a = contactManager->contact(cont.localId());
            qDebug() << "Contact id:" << cont.localId() << " " << a.displayLabel();
        }
    }

What am I missing?

Thanks,

danielwilms 2010-06-13 13:27

Re: QT Mobility contacts API only showing Skype contacts?
 
Hi,

do you have the problem, when you are starting your application remotely from QtCreator? Then please have a look here, maybe that helps you. Or how do you start your application on the device?

Daniel

lirtex 2010-06-13 16:19

Re: QT Mobility contacts API only showing Skype contacts?
 
Thanks!!

That was indeed the problem, and switching to the default user instead of the developer solved it.

Lior


All times are GMT. The time now is 08:27.

vBulletin® Version 3.8.8