Reply
Thread Tools
Posts: 6 | Thanked: 10 times | Joined on May 2010 @ Israel
#1
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,
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
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
 

The Following User Says Thank You to danielwilms For This Useful Post:
Posts: 6 | Thanked: 10 times | Joined on May 2010 @ Israel
#3
Thanks!!

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

Lior
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:42.