Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QContactFetchRequest not working on symbian as meego?
Qt 6.12 LTS is out! See what's new in the release blog

QContactFetchRequest not working on symbian as meego?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mismail
    wrote on last edited by
    #1

    Hi all,

    I am trying to get all the contacts on the device using QContactFetchRequest but it is working on N950 but not working on Symbian.
    am i doing something wrong?
    @
    ContactManager::ContactManager(QObject *parent) :
    QContactManager(parent)
    {
    connect(&m_contactFetchRequest, SIGNAL(resultsAvailable()), this, SLOT(onResultsAvailable()));
    }
    void ContactManager::fetchContacts()
    {
    m_contactFetchRequest.setManager(this);
    m_contactFetchRequest.start();
    }
    void ContactManager::onResultsAvailable()
    {
    #ifdef LOG_FEATURE
    qDebug()<<"void ContactManager::onResultsAvailable()";
    qDebug()<<"error code = "<< m_contactFetchRequest.error();
    #endif
    if(m_contactFetchRequest.error()== QContactManager::NoError){
    m_contacts = m_contactFetchRequest.contacts();
    emit contactsUpdated(m_contacts.count());
    }
    }
    @

    I always get the error code = QContactManager::InvalidDetailError

    can anybody help?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Sounds like a bug. Does the outcome differ if you manually set a filter in the fetch request? Is m_contacts.count() always zero? Does it differ if you use a contact id fetch request, and then create a filter based on the returned ids, and use a contact fetch request to get contacts after that?

      Either way, this is a bug, afaict. Please file a bug on bugreports.qt.nokia.com so that the issue can be tracked and fixed.

      Cheers,
      Chris.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved