c++ - Cannot get Sailfish contacts with QContactManager -


i try jolla's (sailfishos) phonebook contacts qcontactmanager.

qcontactmanager *manager = new qcontactmanager(); qlist<qcontact> results = manager->contacts(); 

results list contains 0 contact.
i check if there error:

qcontactmanager::error error; 

qcontactmanager's error code noerror.
then check available managers.

manager->availablemanagers() 
  • org.nemomobile.contacts.sqlite
  • invalid
  • memory

    qcontactmanager *manager = new qcontactmanager();

    qcontactmanager *manager = new

    qcontactmanager("org.nemomobile.contacts.sqlite");

in both case: manager no error, manager->managername() result invalid.

on other hand, if create manager as:

qcontactmanager *manager = new qcontactmanager("memory"); 

... can use memory based qcontactmanager (for example save , contacts) normally.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -